add system setup and verification

This commit is contained in:
2025-02-22 23:33:02 -07:00
parent 60d7e07114
commit a8f2b832b4
3 changed files with 90 additions and 0 deletions

View File

@ -283,3 +283,19 @@ func tailwindCmd() *cli.Command {
},
}
}
func setupCmd() *cli.Command {
return &cli.Command{
Name: "setup",
Aliases: []string{"s"},
Usage: "Set up masonry, makes sure all dependencies are installed so Masonry can do its job.",
Action: func(c *cli.Context) error {
fmt.Printf("Running on %s/%s\n", runtime.GOOS, runtime.GOARCH)
if err := ensureDependencies(); err != nil {
return fmt.Errorf("error ensuring dependencies | %w", err)
}
return nil
},
}
}