You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+17-1Lines changed: 17 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,12 +62,28 @@ In the above command, `GORELEASER_CURRENT_TAG` can be substituted for any versio
62
62
63
63
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:
64
64
65
-
- All commandds must be singular
65
+
- All commands must be singular
66
66
- ✅ `aura-cli instance`
67
67
- ❌ `aura-cli instances`
68
68
- Output should support the following options:
69
69
-`json`: Provides the raw JSON output of the API, formatted to be human-readable.
70
70
-`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>`
71
87
- Flags, if set, take precedence over global configuration or default values
0 commit comments