Skip to content

Commit

Permalink
Adjust hhfab logging/help
Browse files Browse the repository at this point in the history
  • Loading branch information
Frostman committed Oct 23, 2024
1 parent bda858c commit b3662fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/hhfab/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,8 @@ func Run(ctx context.Context) error {
Usage: "hedgehog fabricator - build, install and run hedgehog",
Description: `Create Hedgehog configs, wiring diagram, build an installer and optionally run the virtual lab (VLAB):
1. Initialize working dir by running 'hhfab init', to use default creds use '--dev' (unsafe)
2a. If building for physical environment, use 'hhfab wiring sample' to generate sample wiring diagram
2b. If building for VLAB, use 'hhfab wiring vlab' to generate VLAB wiring diagram
2a. If building for physical environment, use 'hhfab sample' to generate sample wiring diagram
2b. If building for VLAB, use 'hhfab vlab gen' to generate VLAB wiring diagram
3. Validate configs and wiring with 'hhfab validate' at any time (optional)
4. Build Hedgehog installer with 'hhfab build'
5. Use 'hhfab vlab up' to run VLAB (will run build automatically if needed)
Expand Down
3 changes: 2 additions & 1 deletion pkg/hhfab/cmdconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ func Init(ctx context.Context, c InitConfig) error {
return err
}

// TODO print info about initialized config, created files, next steps, etc.
slog.Info("Adjust configs (incl. credentials, modes, subnets, etc.)", "file", FabConfigFile)
slog.Info("Include wiring files (.yaml) or adjust imported ones", "dir", IncludeDir)

return nil
}
Expand Down

0 comments on commit b3662fd

Please sign in to comment.