Skip to content

refactor(cli): enhance plugin subcommand, closes #7749#7990

Merged
lucasfernog merged 6 commits intodevfrom
refactor/cli-plugin-subcommand
Oct 11, 2023
Merged

refactor(cli): enhance plugin subcommand, closes #7749#7990
lucasfernog merged 6 commits intodevfrom
refactor/cli-plugin-subcommand

Conversation

@amrbashir
Copy link
Member

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Docs
  • New Binding issue #___
  • Code style update
  • Refactor
  • Build-related changes
  • Other, please describe:

Does this PR introduce a breaking change?

  • Yes, and the changes were approved in issue #___
  • No

Checklist

  • When resolving issues, they are referenced in the PR's title (e.g fix: remove a typo, closes #___, #___)
  • A change file is added if any packages will require a version bump due to this PR per the instructions in the readme.
  • I have added a convincing reason for adding this feature, if necessary

Other information

@amrbashir amrbashir requested a review from a team as a code owner October 10, 2023 01:10

#[derive(Subcommand)]
enum Commands {
New(new::Options),
Copy link
Member

Choose a reason for hiding this comment

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

I prefer create instead of new what do you think?

Copy link
Member Author

Choose a reason for hiding this comment

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

new is the usually the term I see in bootstrapping CLIs when you have both init and new, for example, cargo new and cargo init (I honestly can't think of another example, but I am quite certain I saw it somewhere else)

Copy link
Member Author

Choose a reason for hiding this comment

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

or we could have both

Copy link
Member

Choose a reason for hiding this comment

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

sold me on the cargo example

@lucasfernog lucasfernog merged commit 4caa1cc into dev Oct 11, 2023
@lucasfernog lucasfernog deleted the refactor/cli-plugin-subcommand branch October 11, 2023 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🔎 In audit

Development

Successfully merging this pull request may close these issues.

2 participants