Documentation
¶
Overview ¶
Package cmd implements all CLI commands for the gh-issue-dependency extension.
This package contains the command-line interface built with Cobra, including the root command and all subcommands (list, add, remove). Each command handles user input validation, interacts with the GitHub API through the pkg package, and provides structured error messages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Version = "dev"
Version contains the current version of the application. This is set during build time and displayed in version output.
Functions ¶
func Execute ¶
func Execute() int
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
Returns an exit code following GitHub CLI conventions:
- 0: Success
- 1: General error
- 2: Invalid input/validation error
- 3: Permission denied
- 4: Authentication required
Types ¶
This section is empty.