cli/pkg/cmd/root
Max Beizer 45c68b48da
Add discussion command group scaffolding
Introduce the pkg/cmd/discussion/ package with:

- DiscussionClient interface and domain types (client/)
- Generated mock via moq (client/)
- Factory function for lazy client creation (shared/)
- JSON field definitions for --json output (shared/)
- Root 'discussion' command registered in the core group

The interface defines all planned operations (list, search, get, create,
update, close, reopen, comment, lock, unlock, mark-answer, unmark-answer)
with stub implementations that will be replaced as each subcommand is
added in subsequent PRs.

Domain types are intentionally separate from API types per review guidance.
No JSON struct tags are used; serialization is handled by ExportData methods.

Refs: cli/cli#12810, github/gh-cli-and-desktop#115

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-02 10:55:48 -05:00
..
alias.go Fix error handling for extension and shell alias commands (#7567) 2023-06-20 08:41:02 +09:00
alias_test.go Allow creating of nested aliases (#7457) 2023-05-25 09:46:45 +09:00
extension.go Make extension update check non-blocking 2025-01-13 20:38:03 -05:00
extension_registration_test.go fix(root): avoid command name collision when registering extensions 2026-01-19 10:38:39 +00:00
extension_test.go Add small wait to extension update tests 2025-01-16 14:10:42 +01:00
help.go Update a11y text based on draft feedback 2025-04-28 15:01:15 -04:00
help_reference.go update generated content for man pages and website 2024-05-17 09:30:53 -04:00
help_test.go test: improve test case naming 2025-05-22 17:04:04 +01:00
help_topic.go Ensure hostnames are visible in CLI website 2025-07-14 08:33:20 -04:00
help_topic_test.go fix: resolve copyloopvar issues 2025-11-03 20:05:26 +00:00
root.go Add discussion command group scaffolding 2026-04-02 10:55:48 -05:00