dev: automated commit - 2025-05-31 17:55:11

This commit is contained in:
Mariano Z. 2025-05-31 17:55:13 -03:00
parent 2681786023
commit 2b3ed09aa2
Signed by: marianozunino
GPG key ID: 4C73BAD25156DACE

10
main.go
View file

@ -561,6 +561,14 @@ var pushCmd = &cobra.Command{
}, },
} }
var depsCmd = &cobra.Command{
Use: "deps",
Short: "Install dependencies",
RunE: func(cmd *cobra.Command, args []string) error {
return checkDependencies()
},
}
var completionCmd = &cobra.Command{ var completionCmd = &cobra.Command{
Use: "completion [bash|zsh|fish|powershell]", Use: "completion [bash|zsh|fish|powershell]",
Short: "Generate completion script", Short: "Generate completion script",
@ -612,7 +620,7 @@ func main() {
// This prevents Cobra from consuming -- and everything after it // This prevents Cobra from consuming -- and everything after it
runCmd.Flags().SetInterspersed(false) runCmd.Flags().SetInterspersed(false)
rootCmd.AddCommand(runCmd, listCmd, newCmd, pushCmd, completionCmd) rootCmd.AddCommand(runCmd, listCmd, newCmd, pushCmd, depsCmd, completionCmd)
if err := rootCmd.Execute(); err != nil { if err := rootCmd.Execute(); err != nil {
os.Exit(1) os.Exit(1)