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

Refactor arguments in apps and apis commands [CLI-78] #177

Merged
merged 5 commits into from
Mar 20, 2021

Conversation

Widcket
Copy link
Contributor

@Widcket Widcket commented Mar 20, 2021

Description

This command encapsulates and extracts the repetitive logic to define and prompt for the value of arguments on apps and apis commands.

Each argument is defined once in a struct instance that acts as a single source of truth for all the commands of a given resource.

Testing

  • This change adds test coverage for new/changed/fixed functionality

Checklist

  • I have added documentation for new/changed functionality in this PR or in auth0.com/docs
  • All active GitHub checks for tests, formatting, and security are passing
  • The correct base branch is being used, if not master

@Widcket Widcket requested a review from a team March 20, 2021 02:56
"github.com/spf13/cobra"
)

type CommandInput interface {
Copy link
Contributor

Choose a reason for hiding this comment

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

Small nit: this can be made private since we don't expect to use it outside the cli package.

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.

Looking great!

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.

Merge at will when done 💪

@Widcket Widcket merged commit 96b6be4 into main Mar 20, 2021
@Widcket Widcket deleted the refactor-arguments branch March 20, 2021 17:08
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