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

[fix] Rename cmd modules to avoid conflict with built-in cmd #4464

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

gamesh411
Copy link
Collaborator

Rename the module defined in 'codechecker_common/cmd' to 'codechecker_common/cli_commands' (as there is already a cli.py file in the same folder) in order to avoid ambiguity with Python's built-in cmd module when using pdb.set_trace(). The new name better reflects its purpose and eliminates potential naming conflicts.

Rename all 'cmd' directories to 'cli' for consistency with 'codechecker_common/cli_commands'.

Rename the module defined in 'codechecker_common/cmd' to
'codechecker_common/cli_commands' (as there is already a cli.py file
in the same folder) in order to avoid ambiguity with Python's
built-in cmd module when using `pdb.set_trace()`. The new name
better reflects its purpose and eliminates potential naming
conflicts.

Rename all 'cmd' directories to 'cli' for consistency with
'codechecker_common/cli_commands'.
this was my original idea, to rename 'cmd' to 'commandline' but I found
it grammatically incorrect, and the correct spelling 'command_line'
would be maybe a bit too verbose
@gamesh411
Copy link
Collaborator Author

BTW I'm up for discussing what a good module name would be:
I started with 'commandline', then considered 'command_line' (because of grammar :D ), and arrived at 'cli'. But cli.py was already in the codechecker_common directory, so I opted for 'codechecker_cli' for just that folder.

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.

1 participant