Skip to content

Commit a3fe58e

Browse files
authored
Merge pull request #133 from neo4j/update-guidelines
Update guidelines
2 parents 8ea839e + 3e6e0ee commit a3fe58e

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

CONTRIBUTING.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,28 @@ In the above command, `GORELEASER_CURRENT_TAG` can be substituted for any versio
6262

6363
The Aura CLI aims to provide a consistent and reliable experience to the end user. Any change made to the CLI must comform to the following guidelines:
6464

65-
- All commandds must be singular
65+
- All commands must be singular
6666
-`aura-cli instance`
6767
-`aura-cli instances`
6868
- Output should support the following options:
6969
- `json`: Provides the raw JSON output of the API, formatted to be human-readable.
7070
- `table`: Provides a subset of the output, formatted to be human readable on a table. Try to keep the table output below 120 characters to avoid overflowing the screen.
71+
- Verbs and nouns should be separate, with the action at the end
72+
-`aura-cli instance list`
73+
-`aura-cli list-instance`
74+
-`aura-cli list instance`
75+
- Only one argument should be used, if more than one is needed, use flags instead. This is to avoid confusion when passing parameters without enough context
76+
-`aura-cli instance get <id>`
77+
-`aura-cli instance get <id> <deployment-id>`
78+
-`aura-cli instance get <id> --deployment-id <deployment-id>`
79+
- ⚠️ `aura-cli instance get --instance-id <id> --deployment-id <deployment-id>`
80+
This valid, but the option above is preferred as it is more concise
81+
- The argument must always refer to the closest noun
82+
-`aura-cli instance snapshot list <instance-id>`
83+
-`aura-cli instance snapshot list --instance-id <instance-id>`
84+
- No arguments between commands
85+
-`aura-cli tenant <tenant-id> instance get <id>`
86+
-`aura-cli instance get <id> --tenant-id <tenant-id>`
7187
- Flags, if set, take precedence over global configuration or default values
7288

7389
> These guidelines are based on https://clig.dev

0 commit comments

Comments
 (0)