cmd

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2025 License: MIT Imports: 7 Imported by: 0

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

View Source
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL