From bdd21246e68f41125429e56328f455cb80d1b053 Mon Sep 17 00:00:00 2001 From: Lennart Kats Date: Sun, 18 Jun 2023 20:03:38 +0200 Subject: [PATCH] Rename Deploy() to deploy() --- cmd/bundle/deploy.go | 4 ++-- cmd/bundle/run.go | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cmd/bundle/deploy.go b/cmd/bundle/deploy.go index 02b95a35..f84676b1 100644 --- a/cmd/bundle/deploy.go +++ b/cmd/bundle/deploy.go @@ -16,11 +16,11 @@ var deployCmd = &cobra.Command{ RunE: func(cmd *cobra.Command, args []string) error { b := bundle.Get(cmd.Context()) - return Deploy(cmd, b) + return deploy(cmd, b) }, } -func Deploy(cmd *cobra.Command, b *bundle.Bundle) error { +func deploy(cmd *cobra.Command, b *bundle.Bundle) error { // If `--force` is specified, force acquisition of the deployment lock. b.Config.Bundle.Lock.Force = force diff --git a/cmd/bundle/run.go b/cmd/bundle/run.go index c80c04b0..a9465fbb 100644 --- a/cmd/bundle/run.go +++ b/cmd/bundle/run.go @@ -14,7 +14,7 @@ import ( ) var runOptions run.Options -var deploy bool +var deployFlag bool var noWait bool var runCmd = &cobra.Command{ @@ -26,8 +26,8 @@ var runCmd = &cobra.Command{ RunE: func(cmd *cobra.Command, args []string) error { b := bundle.Get(cmd.Context()) - if deploy { - err := Deploy(cmd, b) + if deployFlag { + err := deploy(cmd, b) if err != nil { return err } @@ -104,7 +104,7 @@ var runCmd = &cobra.Command{ func init() { runOptions.Define(runCmd.Flags()) rootCmd.AddCommand(runCmd) - runCmd.Flags().BoolVar(&deploy, "deploy", false, "Call deploy before run.") + runCmd.Flags().BoolVar(&deployFlag, "deploy", false, "Call deploy before run.") runCmd.Flags().BoolVar(&force, "force", false, "Force acquisition of deployment lock.") runCmd.Flags().BoolVar(&noWait, "no-wait", false, "Don't wait for the run to complete.") runCmd.Flags().StringVar(&computeID, "compute", "", "Override compute in the deployment with the given compute ID.")