add system setup and verification
This commit is contained in:
@ -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
|
||||
},
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user