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

Implement more of the CLI #12

Merged
merged 3 commits into from
Aug 27, 2024
Merged

Implement more of the CLI #12

merged 3 commits into from
Aug 27, 2024

Conversation

AislingHPE
Copy link
Contributor

@AislingHPE AislingHPE commented Aug 22, 2024

This PR adds --output,--overwrite, --stdout and --allow-empty and implements each of them. There are some edge cases I need to cover with logging and the stdout option, but otherwise this is a first draft of the 'complete' CLI.

@AislingHPE AislingHPE changed the title Fix-cli-a-bit Improve CLI general behaviour Aug 23, 2024
Next up is adding slog and slog options. Also adding unit tests for some of the options.

This PR adds `--output`,`--overwrite`, `--stdout` and `--allow-empty` and implements each of them. There are some edge cases I need to cover with logging and the `stdout` option, but otherwise this is a first draft of the 'complete' CLI.
cmd.go now prints usage when a flag error occurs, and is structured so that it throws around fewer global variables.
@AislingHPE AislingHPE changed the title Improve CLI general behaviour Implement more of the CLI Aug 26, 2024
@AislingHPE AislingHPE marked this pull request as ready for review August 26, 2024 11:15
@AislingHPE AislingHPE merged commit 5a818b9 into main Aug 27, 2024
2 checks passed
@AislingHPE AislingHPE deleted the fix-cli-a-bit branch August 27, 2024 08:35
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