mirror of
https://github.com/MichaelMure/git-bug.git
synced 2025-01-07 10:36:36 +03:00
14 lines
430 B
Markdown
14 lines
430 B
Markdown
|
## Pattern
|
||
|
|
||
|
CLI commands should consistently follow this pattern:
|
||
|
|
||
|
```
|
||
|
xxx --> list xxx things if list, otherwise show one
|
||
|
xxx new --> create thing
|
||
|
xxx rm --> delete thing
|
||
|
xxx show ID --> show one
|
||
|
xxx show --> show one with "select" implied ID
|
||
|
xxx yyy --> action commands for that thing, or subcommand
|
||
|
xxx select|deselect --> select/deselect implied ID
|
||
|
```
|