Skip to content

Commit

Permalink
enable --api-key and --api-token
Browse files Browse the repository at this point in the history
  • Loading branch information
bearmini committed Jul 19, 2017
1 parent 0e23f78 commit de96e1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions generators/cmd/templates/root.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ var providedAPIToken string
func init() {
RootCmd.PersistentFlags().StringVar(&specifiedProfileName, "profile", "", "Specify profile name")
RootCmd.PersistentFlags().StringVar(&specifiedCoverageType, "coverage-type", "", "Specify coverage type")
//RootCmd.PersistentFlags().StringVar(&providedAPIKey, "api-key", "", "Specify API key otherwise soracom-cli performs authentication in behalf of you")
//RootCmd.PersistentFlags().StringVar(&providedAPIToken, "api-token", "", "Specify API token otherwise soracom-cli performs authentication in behalf of you")
RootCmd.PersistentFlags().StringVar(&providedAPIKey, "api-key", "", "Specify API key otherwise soracom-cli performs authentication on behalf of you")
RootCmd.PersistentFlags().StringVar(&providedAPIToken, "api-token", "", "Specify API token otherwise soracom-cli performs authentication on behalf of you")
}
4 changes: 2 additions & 2 deletions soracom/generated/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ var providedAPIToken string
func init() {
RootCmd.PersistentFlags().StringVar(&specifiedProfileName, "profile", "", "Specify profile name")
RootCmd.PersistentFlags().StringVar(&specifiedCoverageType, "coverage-type", "", "Specify coverage type")
//RootCmd.PersistentFlags().StringVar(&providedAPIKey, "api-key", "", "Specify API key otherwise soracom-cli performs authentication in behalf of you")
//RootCmd.PersistentFlags().StringVar(&providedAPIToken, "api-token", "", "Specify API token otherwise soracom-cli performs authentication in behalf of you")
RootCmd.PersistentFlags().StringVar(&providedAPIKey, "api-key", "", "Specify API key otherwise soracom-cli performs authentication on behalf of you")
RootCmd.PersistentFlags().StringVar(&providedAPIToken, "api-token", "", "Specify API token otherwise soracom-cli performs authentication on behalf of you")
}

0 comments on commit de96e1b

Please sign in to comment.