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

[A0CLI-54] feat: Adding the update rule subcommand #72

Merged
merged 1 commit into from
Jan 27, 2021

Conversation

alexiskulash
Copy link

Description

This adds the base for the auth0 rules update subcommand. Future TODOs include pressing return / Enter to skip updating a certain part of the rule (as not all args should be required if I just want to update the rule name, for example).

@alexiskulash alexiskulash requested review from cyx and vprasanth January 27, 2021 15:23
@alexiskulash alexiskulash self-assigned this Jan 27, 2021
@alexiskulash
Copy link
Author

Future TODOs include pressing return / Enter to skip updating a certain part of the rule (as not all args should be required if I just want to update the rule name, for example).

@Widcket IIRC you added the interactive prompts, right? Have you done this second bit elsewhere?

@alexiskulash alexiskulash changed the title Adding the update rule subcommand [A0CLI-54] feat: Adding the update rule subcommand Jan 27, 2021
},
}

cmd.Flags().StringVarP(&flags.ID, ruleID, "i", "", "ID of the rule to update (required)")
Copy link
Contributor

Choose a reason for hiding this comment

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

Can probably skip the i here, but keep n, s, o, e.

Copy link
Author

@alexiskulash alexiskulash Jan 27, 2021

Choose a reason for hiding this comment

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

I left that as i in order to standardize how this was done on L352 -- I'm up for removing the i, but might need to do it in a few spots across the board. Might leave that out of this PR for now, then take a broad sweep later?

Copy link
Contributor

@cyx cyx left a comment

Choose a reason for hiding this comment

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

Extremely minor comment on the id, but otherwise :shipit:

@alexiskulash alexiskulash merged commit 0aa048a into main Jan 27, 2021
@alexiskulash alexiskulash deleted the add/update-rule branch January 27, 2021 16:32
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