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

Make the command 'search' the default command #18

Closed
mthmulders opened this issue Dec 29, 2021 · 2 comments
Closed

Make the command 'search' the default command #18

mthmulders opened this issue Dec 29, 2021 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@mthmulders
Copy link
Owner

As mcs stands for "Maven Central Search", it's a bit odd to type mcs search foo. It would be great if one could type mcs foo and MCS would know it's supposed to run the "search" command with "foo" as a parameter.

Given the ideas for further development, it's important to take into account that later, mcs may have more than one command. Imagine there's a copy command, it's important to distinguish between mcs search foo and mcs copy. The latter is not mcs search copy but mcs copy (probably with a missing parameter, who knows?)

@mthmulders mthmulders added the enhancement New feature or request label Jan 6, 2022
@martinbonnin
Copy link

+1 for this. For the problem of disambiguation, I can think of 2 solutions:

  1. Keep supporting mcs search so users typing mcs copy would see an error and could fallback to the longer form mcs search copy if that was the original intent
  2. Use different command names: mcs for search, mcc for copy or maby mccli (or mcli) for a generic longer form "cli", mcs being the quick command.

@mthmulders
Copy link
Owner Author

Released in MCS 0.6.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants