-
Notifications
You must be signed in to change notification settings - Fork 12
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
feat: 295 monorepo directory structure design proposal #389
base: main
Are you sure you want to change the base?
Conversation
…l values. improves config error handling.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some initial comments.
23ac47d
to
0237e3b
Compare
0237e3b
to
823e5bc
Compare
…thub.com:RedHatProductSecurity/trestle-bot into 295-monorepo-directory-structure-design-proposal
…thub.com:RedHatProductSecurity/trestle-bot into 295-monorepo-directory-structure-design-proposal
…thub.com:RedHatProductSecurity/trestle-bot into 295-monorepo-directory-structure-design-proposal
Co-authored-by: Jennifer Power <[email protected]>
Co-authored-by: Jennifer Power <[email protected]>
@click.option( | ||
"--ssp-name", | ||
prompt="Enter name of SSP to create", | ||
help="Name of SSP to create.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, required=True
should be set here. I'm not sure on the prompt. Today we do have a Github action for the create-cd command, so prompting would not work. It might be safest to let it error out and exit.
trestlebot/cli/commands/create.py
Outdated
) | ||
@click.option( | ||
"--compdefs", | ||
required=False, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For consistency I would vote we stick with the command sep list for now. I do believe is required for the create ssp
command.
…thub.com:RedHatProductSecurity/trestle-bot into 295-monorepo-directory-structure-design-proposal
8cd7085
to
1669ea8
Compare
…thub.com:RedHatProductSecurity/trestle-bot into 295-monorepo-directory-structure-design-proposal
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great
I noted there are some missing options in create command.
@create_cmd.command(name="compdef", help="Component definition authoring subcommand.") | ||
@click.pass_context | ||
@common_create_options | ||
@common_options |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hbraswelrh , @git_options
should be added here.
tmp_init_dir, | ||
], | ||
) | ||
assert result.exit_code == 2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The expected exit_code is 2? Is there any context I missed?
Description
This PR contains the initial code for a Click based CLI for trestle-bot as described in ADR-001. This Click based CLI will replace the existing
entrypoints
modules. This PR only contains the code for the CLI, it does not break any existing commands/actions. Subsequent PRs will make the necessary changes to swap the current entrypoints with these new CLI commands.Fixes # #295
Type of change
How has this been tested?
Unit tests have been added in
tests/cli
for all new CLI commands/modules.Checklist