8000 Add color and no-color aliases by Doomguy-BFG9000 · Pull Request #137 · tomnomnom/gron · GitHub
[go: up one dir, main page]

Skip to content

Add color and no-color aliases - #137

Open
Doomguy-BFG9000 wants to merge 1 commit into
tomnomnom:masterfrom
Doomguy-BFG9000:fix/color-flag-aliases
Open

Doomguy-BFG9000 wants to merge 1 commit into
tomnomnom:masterfrom
Doomguy-BFG9000:fix/color-flag-aliases

Conversation

@Doomguy-BFG9000
Copy link
Copy Markdown

--color and --no-color are now accepted as aliases for --colorize and --monochrome, as requested in #48. Help, README, and Bash/Fish completions include the aliases.

Regression tests invoke the real CLI entry point in subprocesses and compare each alias with its existing option. The no-color case also checks that output contains no ANSI escapes.

Validation on Windows with Go 1.27.3: go test -count=1 ./..., go vet ./..., go build, and executable smoke checks passed. The legacy script/lint gometalinter toolchain was not run.

Closes #48.

This branch has not been deployed

No deployments
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.

Suppport --color and --no-color for consistency with other tools

1 participant

0