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
@@ -23,20 +23,22 @@ unityauth user list -t 1 -o json
23
23
```
24
24
25
25
**Flag Mapping**:
26
-
| Long Flag | Short Flag | Commands |
27
-
|-----------|------------|----------|
28
-
|`--tenant-id`|`-t`| user list, user create, user update, tenant users, permissions list |
29
-
|`--format`|`-o`| All commands (global) |
30
-
|`--verbose`|`-v`| All commands (global) |
31
-
|`--email`|`-e`| user create, login|
32
-
|`--role-ids`|`-r`|user create, user update|
33
-
|`--first-name`|`-f`| user create, user update-profile|
34
-
|`--last-name`|`-l`| user create, user update-profile |
35
-
|`--password`|`-p`| user create, user update-profile |
36
-
|`--service-id`|`-s`|permissions list|
26
+
| Long Flag | Short Flag | Commands | Status |
27
+
|-----------|------------|----------|--------|
28
+
|`--tenant-id`|`-t`| user list, user create, user update, permissions list| ✅ Implemented|
29
+
|`--format`|`-o`| All commands (global) | ✅ Implemented |
30
+
|`--verbose`|`-v`| All commands (global) | ✅ Implemented |
31
+
|`--role-ids`|`-r`| user create, user update | ✅ Implemented|
32
+
|`--service-id`|`-s`|permissions list | ✅ Implemented|
33
+
|`--email`|`-e`| user create, login | ⏸️ Deferred (infrequent use)|
34
+
|`--first-name`|`-f`| user create, user update-profile| ⏸️ Deferred (infrequent use)|
35
+
|`--last-name`|`-l`| user create, user update-profile| ⏸️ Deferred (infrequent use)|
36
+
|`--password`|`-p`|user create, user update-profile | ⏸️ Deferred (security: prefer prompts)|
37
37
38
38
**Implementation**: Add `short_flag` parameter to Click options.
39
39
40
+
**Note**: Short flags were selectively added to the most frequently used options to avoid namespace pollution. Options like `--email`, `--first-name`, `--last-name`, and `--password` are typically only used once per command invocation and don't benefit as much from shorter typing. Additionally, `--password` is better handled via secure prompts than command-line flags.
41
+
40
42
---
41
43
42
44
### 1.2 Interactive Mode for Complex Commands
@@ -417,17 +419,183 @@ Errors:
417
419
418
420
---
419
421
422
+
## Priority 4 (Documentation)
423
+
424
+
### 4.1 Document `--dry-run` Flag
425
+
426
+
**Problem**: The `--dry-run` / `-n` flag was implemented but not documented in the user guide.
427
+
428
+
**Affected Commands**:
429
+
- `user create --dry-run`
430
+
- `user update --dry-run`
431
+
- `user update-profile --dry-run`
432
+
433
+
**Files to Update**:
434
+
- `docs/user-guide.md` - Add `--dry-run` option to each command's options table and examples
435
+
436
+
**Documentation to Add** (example for `user create`):
437
+
438
+
```markdown
439
+
**Optional Options:**
440
+
441
+
| Option | Description |
442
+
|--------|-------------|
443
+
| `--dry-run`, `-n` | Preview changes without executing |
444
+
445
+
**Examples:**
446
+
447
+
\`\`\`bash
448
+
# Preview user creation without actually creating
449
+
unityauth user create --dry-run \
450
+
--email user@example.com \
451
+
--first-name John \
452
+
--last-name Doe \
453
+
--password "SecureP@ss123" \
454
+
--tenant-id 1 \
455
+
--role-ids "2,3"
456
+
\`\`\`
457
+
```
458
+
459
+
---
460
+
461
+
### 4.2 Document All Configuration Keys
462
+
463
+
**Problem**: The `config set` documentation only lists 3 keys but the implementation supports 10+.
0 commit comments