Commit 8b21de3
chore: add detailed help commands and streamline documentation (#35)
* Initial plan
* feat: add detailed help commands for list, get, create, and complete
- Add showCommandHelp function to display resource-specific flags
- Support 'c8ctl help <command>' syntax (e.g., 'c8ctl help list')
- Add detailed help for list command showing all resources and their flags
- Add detailed help for get, create, and complete commands
- Add unit tests for new help functionality
Co-authored-by: vobu <6573426+vobu@users.noreply.github.com>
* docs: improve README with concise examples and help references
- Add "Getting Help" section highlighting new detailed help commands
- Make "Basic Commands" section more concise
- Add reference to EXAMPLES.md for comprehensive examples
- Update "Command Structure" with complete verb list
- Add tip about using 'c8ctl help <command>' for detailed help
- Update main help output to show 'help [command]' syntax
Co-authored-by: vobu <6573426+vobu@users.noreply.github.com>
* feat: update shell completion for new help commands and sync verb
- Add completion for 'c8ctl help <command>' to show available commands
- Add 'sync' verb to bash, zsh, and fish completions
- Add process-definition (pd) resource to get command completions
- Update help command descriptions in all shells
- Add help resources completion for bash, zsh, and fish
Co-authored-by: vobu <6573426+vobu@users.noreply.github.com>
* fix: limit help command completion to implemented commands only
- Reduce help_resources to only list, get, create, complete
- Remove unimplemented help commands from shell completion
- Align completion suggestions with actual functionality
Co-authored-by: vobu <6573426+vobu@users.noreply.github.com>
* docs: clarify help command supports only list, get, create, complete
- Update help output to explicitly state which commands have detailed help
- Set accurate user expectations about available detailed help
Co-authored-by: vobu <6573426+vobu@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: vobu <6573426+vobu@users.noreply.github.com>1 parent 179eed3 commit 8b21de3
File tree
6 files changed
+333
-51
lines changed- src
- commands
- tests/unit
6 files changed
+333
-51
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
73 | 79 | | |
74 | 80 | | |
| 81 | + | |
75 | 82 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
| 83 | + | |
92 | 84 | | |
93 | | - | |
94 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
95 | 91 | | |
96 | | - | |
| 92 | + | |
97 | 93 | | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
| 94 | + | |
108 | 95 | | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
115 | 101 | | |
116 | 102 | | |
| 103 | + | |
| 104 | + | |
117 | 105 | | |
118 | 106 | | |
119 | 107 | | |
| |||
358 | 346 | | |
359 | 347 | | |
360 | 348 | | |
361 | | - | |
362 | | - | |
363 | | - | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
364 | 375 | | |
365 | 376 | | |
366 | 377 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| 44 | + | |
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
| |||
95 | 97 | | |
96 | 98 | | |
97 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
98 | 103 | | |
99 | 104 | | |
100 | 105 | | |
| |||
104 | 109 | | |
105 | 110 | | |
106 | 111 | | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
107 | 115 | | |
108 | 116 | | |
109 | 117 | | |
| |||
154 | 162 | | |
155 | 163 | | |
156 | 164 | | |
| 165 | + | |
157 | 166 | | |
158 | 167 | | |
159 | 168 | | |
160 | | - | |
| 169 | + | |
161 | 170 | | |
162 | 171 | | |
163 | 172 | | |
| |||
219 | 228 | | |
220 | 229 | | |
221 | 230 | | |
| 231 | + | |
| 232 | + | |
222 | 233 | | |
223 | 234 | | |
224 | 235 | | |
| |||
302 | 313 | | |
303 | 314 | | |
304 | 315 | | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
305 | 323 | | |
306 | 324 | | |
307 | 325 | | |
| |||
324 | 342 | | |
325 | 343 | | |
326 | 344 | | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
327 | 354 | | |
328 | 355 | | |
329 | 356 | | |
| |||
438 | 465 | | |
439 | 466 | | |
440 | 467 | | |
| 468 | + | |
| 469 | + | |
441 | 470 | | |
442 | 471 | | |
443 | 472 | | |
444 | 473 | | |
445 | | - | |
446 | | - | |
| 474 | + | |
| 475 | + | |
447 | 476 | | |
448 | 477 | | |
449 | 478 | | |
| |||
482 | 511 | | |
483 | 512 | | |
484 | 513 | | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
485 | 518 | | |
486 | 519 | | |
487 | 520 | | |
| |||
549 | 582 | | |
550 | 583 | | |
551 | 584 | | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
552 | 591 | | |
553 | 592 | | |
554 | 593 | | |
| |||
568 | 607 | | |
569 | 608 | | |
570 | 609 | | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
571 | 620 | | |
572 | 621 | | |
573 | 622 | | |
| |||
0 commit comments