ajmwagar / bliss

Ignorance is bliss! Ignore your .gitignore
MIT License
153 stars 6 forks source link

CLI Command Syntax Design #9

Open bestouff opened 5 years ago

bestouff commented 5 years ago

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 commented 5 years ago

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.

bestouff commented 5 years ago

Ok, I edited the issue with your suggestion.

ajmwagar commented 5 years ago

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