dev: automated commit - 2025-05-31 17:55:11
This commit is contained in:
parent
2681786023
commit
2b3ed09aa2
1 changed files with 9 additions and 1 deletions
10
main.go
10
main.go
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue