CLI Command Syntax Design
bestouff opened this issue · 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):
- hyphens, e.g.
bliss --cache
(bonus: shortened commands, i.e.bliss -c
- argument for languages, e.g.
bliss --lang rust
- add a
lang
command, like this:bliss lang rust,python
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.
Ok, I edited the issue with your suggestion.
Awesome, if anyone else wants to chime in we can discuss and finalize the syntax design.