bliss icon indicating copy to clipboard operation
bliss copied to clipboard

CLI Command Syntax Design

Open bestouff opened this issue 6 years ago • 3 comments

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

bestouff avatar May 16 '19 07:05 bestouff

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 avatar May 16 '19 16:05 ajmwagar

Ok, I edited the issue with your suggestion.

bestouff avatar May 16 '19 16:05 bestouff

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

ajmwagar avatar May 17 '19 05:05 ajmwagar