|
|
@@ -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)
|