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

CLI Command Syntax Design #9

Open
bestouff opened this issue May 16, 2019 · 3 comments
Open

CLI Command Syntax Design #9

bestouff opened this issue May 16, 2019 · 3 comments
Labels
bug Something isn't working enhancement New feature or request help wanted Extra attention is needed

Comments

@bestouff
Copy link

bestouff commented May 16, 2019

Currently there's an ambiguity with

bliss list

where list could be interpreted as a command or a language. Currently it's a command, but whenever a language with the same name would appear (and conversely, if a new command named like an existing language appears) there could be some troubles with e.g. some scripts invoking bliss.

Commands and languages should be separated, possible options (please edit if you have other ideas):

  1. hyphens, e.g. bliss --cache (bonus: shortened commands, i.e. bliss -c
  2. argument for languages, e.g. bliss --lang rust
  3. add a lang command, like this: bliss lang rust,python
@ajmwagar ajmwagar added bug Something isn't working enhancement New feature or request labels May 16, 2019
@ajmwagar
Copy link
Owner

I agree, list and the lang queries need to be separated.

Not sure what the new syntax should be.

We could possibly add a lang command. The new syntax be bliss lang rust,python etc.

Or we could use flags like you suggested. Flags would be nice because you can setup short identifiers (i.e. -l or -c for list and cache)

Up for discussion.

@ajmwagar ajmwagar added the help wanted Extra attention is needed label May 16, 2019
@bestouff
Copy link
Author

Ok, I edited the issue with your suggestion.

@ajmwagar
Copy link
Owner

Awesome, if anyone else wants to chime in we can discuss and finalize the syntax design.

@ajmwagar ajmwagar changed the title Commands and languages should be separated CLI Command Syntax Design May 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants