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

feat(cli): abort tk show when stdout is being piped #47

Merged
merged 2 commits into from Aug 14, 2019

Conversation

rfratto
Copy link
Member

@rfratto rfratto commented Aug 13, 2019

Fixes #3
Closes #49

@rfratto rfratto requested a review from sh0rez August 13, 2019 19:28
cmd/tk/workflow.go Outdated Show resolved Hide resolved
cmd/tk/workflow.go Outdated Show resolved Hide resolved
cmd/tk/workflow.go Outdated Show resolved Hide resolved
cmd/tk/workflow.go Show resolved Hide resolved
…edirect

--dangerous-allow-redirect bypasses check for running in an interactive
terminal. This flag should be passed if the user wants to redirect the
output of tk show to a pipe or a file.
@rfratto
Copy link
Member Author

rfratto commented Aug 14, 2019

@sh0rez made all the requested changes, PTAL

@sh0rez
Copy link
Member

sh0rez commented Aug 14, 2019

Awesome, thanks!

@sh0rez sh0rez closed this Aug 14, 2019
@sh0rez sh0rez reopened this Aug 14, 2019
@sh0rez sh0rez changed the title cmd/tk: abort tk show when stdout is being piped feat(cli): abort tk show when stdout is being piped Aug 14, 2019
@sh0rez sh0rez merged commit ec60702 into grafana:master Aug 14, 2019
@rfratto rfratto deleted the reject_ks_show_pipe branch August 14, 2019 12:29
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.

Discourage piping
2 participants