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

LAKECTL_INTERACTIVE env can control lakeCTL on/off terminal output #3358

Merged
merged 1 commit into from
May 18, 2022

Conversation

nopcoder
Copy link
Contributor

@nopcoder nopcoder commented May 14, 2022

Using LAKECTL_INTERACTIVE environment variable boolean (already supported), we can force lakectl terminal (interactive on) or no terminal (interactive off).

By setting a value, it will override the default behaviour where we try to identify if the terminal is currently attached to our standard output.

Fix #3026

@nopcoder nopcoder added the exclude-changelog PR description should not be included in next release changelog label May 14, 2022
@nopcoder nopcoder requested a review from idanovo May 14, 2022 11:04
@nopcoder nopcoder self-assigned this May 14, 2022
@nopcoder nopcoder force-pushed the fix/lakectl-interactive branch from e056322 to 6e7d59b Compare May 14, 2022 22:10
@idanovo
Copy link
Contributor

idanovo commented May 17, 2022

@nopcoder thanks for doing this!
@talSofer it means we can now test refs-dump command. (and others) properly. If you remember, we had a problem testing the output of it and check if we are missing a field on the dump output

@idanovo
Copy link
Contributor

idanovo commented May 17, 2022

@nopcoder do you think a test that checks the output of a simple command with and without the flag would help us here?

@nopcoder
Copy link
Contributor Author

@nopcoder do you think a test that checks the output of a simple command with and without the flag would help us here?

The plan is to use this feature in all the tests that verify the lakectl output in the terminal format.

@nopcoder nopcoder merged commit 531525e into master May 18, 2022
@nopcoder nopcoder deleted the fix/lakectl-interactive branch May 18, 2022 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exclude-changelog PR description should not be included in next release changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't run runShellCommand func with terminal mode
2 participants