diff options
Diffstat (limited to 'client/go/cmd/target.go')
-rw-r--r-- | client/go/cmd/target.go | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/client/go/cmd/target.go b/client/go/cmd/target.go index 8b0cc4ee51a..d6c01acf5b1 100644 --- a/client/go/cmd/target.go +++ b/client/go/cmd/target.go @@ -7,19 +7,10 @@ package cmd import ( "log" "strings" - - "github.com/spf13/cobra" ) const ( - applicationFlag = "application" - targetFlag = "target" - cloudApi = "https://api.vespa-external.aws.oath.cloud:4443" -) - -var ( - targetArg string - applicationArg string + cloudApi = "https://api.vespa-external.aws.oath.cloud:4443" ) type target struct { @@ -36,16 +27,6 @@ const ( documentContext context = 2 ) -func addTargetFlag(command *cobra.Command) { - command.PersistentFlags().StringVarP(&targetArg, targetFlag, "t", "local", "The name or URL of the recipient of this command") - bindFlagToConfig(targetFlag, command) -} - -func addApplicationFlag(command *cobra.Command) { - command.PersistentFlags().StringVarP(&applicationArg, applicationFlag, "a", "", "The application name to use for deployment") - bindFlagToConfig(applicationFlag, command) -} - func deployTarget() string { return getTarget(deployContext).deploy } |