Prechádzať zdrojové kódy

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

Mariano Z. 8 mesiacov pred
rodič
commit
2b3ed09aa2
1 zmenil súbory, kde vykonal 9 pridanie a 1 odobranie
  1. 9 1
      main.go

+ 9 - 1
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{
 	Use:   "completion [bash|zsh|fish|powershell]",
 	Short: "Generate completion script",
@@ -612,7 +620,7 @@ func main() {
 	// This prevents Cobra from consuming -- and everything after it
 	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 {
 		os.Exit(1)