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

refactor CLI (1/3): Cosmetic changes #2145

Merged
merged 3 commits into from
Jan 26, 2023

Conversation

not-my-profile
Copy link
Contributor

@not-my-profile not-my-profile commented Jan 25, 2023

While working on the many-to-many mapping I wanted to introduce a new subcommand ... only to end up refactoring the whole ruff_cli::cli::Cli struct.

This CLI refactor has gotten so large that I'll split it up in two PRs (this PR contains the purely cosmetic changes, the next PR will contain the larger refactors).

@not-my-profile not-my-profile changed the title refactor: Rename CLI arg structs from Cli to Args refactor CLI (1/2): Cosmetic refactors Jan 25, 2023
@not-my-profile not-my-profile changed the title refactor CLI (1/2): Cosmetic refactors refactor CLI (1/2): Cosmetic changes Jan 25, 2023
@not-my-profile not-my-profile force-pushed the rename-Cli-to-Args branch 4 times, most recently from 6c8cc8c to 0b59370 Compare January 25, 2023 14:10
@charliermarsh
Copy link
Member

LGTM, but now has a conflict (sorry!)

Technically the command-line interface (CLI) encompasses both input and
output, so naming the input structs 'Args' is more accurate than 'Cli'.
@not-my-profile
Copy link
Contributor Author

Rebased :)

@charliermarsh charliermarsh merged commit b69b6a7 into astral-sh:main Jan 26, 2023
@not-my-profile not-my-profile changed the title refactor CLI (1/2): Cosmetic changes refactor CLI (1/3): Cosmetic changes Jan 26, 2023
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