Skip to content

Add flag to forcefully create project on upload #577

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

Merged
merged 1 commit into from
Oct 26, 2021

Conversation

brandenrodgers
Copy link
Contributor

Description and Context

Adding a flag to bypass the "do you want to create this project" question that we ask users on initial project upload. This will be used in the GH project upload action.

This is the question that this flag bypasses:
? The project example-project does not exist in 123456. Would you like to create it? Yes

Example usage:
hs project upload --forceCreate

Screenshots

TODO

Who to Notify

@@ -218,6 +212,12 @@ exports.builder = yargs => {
type: 'string',
});

yargs.option('forceCreate', {
describe: 'Automatically create project if it does not exist',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@markhazlewood any thoughts on the name of the flag and/or the description of the flag here? I don't picture users utilizing this flag much, but it should be helpful in situations where this command is run from within another service (the GH upload action, for example).

Right now it is hs project upload --forceCreate

@brandenrodgers brandenrodgers merged commit 881b298 into master Oct 26, 2021
@brandenrodgers brandenrodgers deleted the project-force-create-flag branch October 26, 2021 16:19
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