Skip to content

Commit

Permalink
More --gqlerrorlogging support hide flag, make opt
Browse files Browse the repository at this point in the history
  • Loading branch information
codepope committed Jun 24, 2020
1 parent eeebdc0 commit 503e6b8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
4 changes: 4 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ func init() {
rootCmd.PersistentFlags().BoolP("json", "j", false, "json output")
viper.BindPFlag(flyctl.ConfigJSONOutput, rootCmd.PersistentFlags().Lookup("json"))

rootCmd.PersistentFlags().Bool("gqlerrorlogging", false, "Log GraphQL errors directly to stdout")

rootCmd.Flags().MarkHidden("gqlerrorlogging")

rootCmd.AddCommand(
newAuthCommand(),
newAppStatusCommand(),
Expand Down
11 changes: 6 additions & 5 deletions flyctl/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ import (
)

const (
ConfigAPIToken = "access_token"
ConfigAPIBaseURL = "api_base_url"
ConfigAppName = "app"
ConfigVerboseOutput = "verbose"
ConfigJSONOutput = "json"
ConfigAPIToken = "access_token"
ConfigAPIBaseURL = "api_base_url"
ConfigAppName = "app"
ConfigVerboseOutput = "verbose"
ConfigJSONOutput = "json"
ConfigGQLErrorLogging = "gqlerrorlogging"

ConfigRegistryHost = "registry_host"
ConfigUpdateCheckLatestVersion = "update_check.latest_version"
Expand Down

0 comments on commit 503e6b8

Please sign in to comment.