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

Update pki CLI to use ArgumentParser #4931

Merged
merged 1 commit into from
Jan 22, 2025
Merged

Conversation

edewata
Copy link
Contributor

@edewata edewata commented Jan 21, 2025

The pki CLI has been updated to parse the main arguments (which are also defined in MainCLI.java) using ArgumentParser, determine the subcommand, then pass the remaining arguments to the Python or Java module corresponding to the subcommand.

It does not use subparsers like in pki-server since the pki CLI does not have the list of Java subcommands.

The pki CLI have options that might conflict with other options in some subcommands. That will be addressed separately later.

The help message for default message format in MainCLI.java has also been updated.

Note: All pylint issues have been fixed now, but apparently there are existing Flake8 issues that were hidden by pylint issues. They will be fixed separately later.

The pki CLI has been updated to parse the main arguments (which
are also defined in MainCLI.java) using ArgumentParser, determine
the subcommand, then pass the remaining arguments to the Python
or Java module corresponding to the subcommand.

It does not use subparsers like in pki-server since the pki CLI
does not have the list of Java subcommands.

The pki CLI have options that might conflict with other options
in some subcommands. That will be addressed separately later.

The help message for default message format in MainCLI.java has
also been updated.
Copy link
Member

@fmarco76 fmarco76 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@edewata
Copy link
Contributor Author

edewata commented Jan 22, 2025

@fmarco76 Thanks!

@edewata edewata merged commit 0c5c7e4 into dogtagpki:master Jan 22, 2025
161 of 171 checks passed
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