Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(influx): drop global flags and replace with locals #18713

Merged
merged 1 commit into from
Jun 24, 2020

Conversation

jsteenb2
Copy link
Contributor

@jsteenb2 jsteenb2 commented Jun 24, 2020

many spots in the CLI that global flags show up cause confusion or just
add overhead with no value. This cleans that up. Other commands may
have token removed if it does not pertain.

commands that do not have global flags:

  • influx
  • influx completion
  • influx config (all sub commands as well)
  • influx template
  • influx template validate
  • influx transpile
  • influx version
  • all root commands that have no actions, aka influx organization

note: this PR makes me very happy 🙃

@jsteenb2 jsteenb2 requested review from sanderson and russorat June 24, 2020 21:20
@jsteenb2 jsteenb2 force-pushed the 18706/influx_config_host_parse branch 2 times, most recently from bce2de6 to 002e732 Compare June 24, 2020 21:36
Copy link
Contributor

@sanderson sanderson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some text suggestions

cmd/influx/main.go Outdated Show resolved Hide resolved
cmd/influx/main.go Outdated Show resolved Hide resolved
cmd/influx/main.go Outdated Show resolved Hide resolved
@jsteenb2 jsteenb2 force-pushed the 18706/influx_config_host_parse branch from 002e732 to 1f55ee1 Compare June 24, 2020 22:06
many spots in the CLI that global flags show up cause confusion or just
add overhead with no value. This cleans that up. Other commands may
have token removed if it does not pertain.

commands that do not have global flags:
  * influx
  * influx completion
  * influx config (all sub commands as well)
  * influx template
  * influx template validate
  * influx transpile
  * influx version
  * all root commands that have no actions, aka influx organization
@jsteenb2 jsteenb2 force-pushed the 18706/influx_config_host_parse branch from 1f55ee1 to 9d0e2d6 Compare June 24, 2020 22:18
@jsteenb2 jsteenb2 merged commit 52cd625 into master Jun 24, 2020
@jsteenb2 jsteenb2 deleted the 18706/influx_config_host_parse branch June 24, 2020 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants