cmd

package
v0.0.0-...-3e6a3a9 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Overview

Package cmd provides the command line interface and root commands for gzh-manager. This includes the main CLI structure, version management, and command registration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(ctx context.Context, version string) error

Execute invokes the command.

func NewQualityCmd

func NewQualityCmd(appCtx *app.AppContext) *cobra.Command

NewQualityCmd creates the quality command by wrapping gzh-cli-quality. This delegates all quality tool functionality to the external gzh-cli-quality package, avoiding code duplication and ensuring consistency with the standalone quality CLI.

The wrapper allows customization of the command metadata while preserving all subcommands and functionality from the gzh-cli-quality implementation.

func NewRootCmd

func NewRootCmd(ctx context.Context, version string, appCtx *app.AppContext) *cobra.Command

NewRootCmd creates the root command and wires up subcommands with shared context.

func NewShellforgeCmd

func NewShellforgeCmd(ctx context.Context, appCtx *app.AppContext) *cobra.Command

NewShellforgeCmd creates the shellforge command by wrapping gzh-cli-shellforge. This delegates all shell configuration management functionality to the external gzh-cli-shellforge package, avoiding code duplication and ensuring consistency with the standalone shellforge CLI.

The wrapper allows customization of the command metadata while preserving all subcommands and functionality from the gzh-cli-shellforge implementation.

func RegisterPMCmd

func RegisterPMCmd(appCtx *app.AppContext)

RegisterPMCmd is a stub when pm_external is not enabled. The actual PM command integration requires the external library.

func RegisterQualityCmd

func RegisterQualityCmd(appCtx *app.AppContext)

RegisterQualityCmd registers the quality command with the command registry.

func RegisterShellforgeCmd

func RegisterShellforgeCmd(appCtx *app.AppContext)

RegisterShellforgeCmd registers the shellforge command with the command registry.

Types

This section is empty.

Directories

Path Synopsis
Package devenv provides development environment management commands.
Package devenv provides development environment management commands.
Package doctor provides system diagnostics and health check commands.
Package doctor provides system diagnostics and health check commands.
git
Package git provides repository lifecycle management commands.
Package git provides repository lifecycle management commands.
패키지 gitsync는 `gzh-cli-gitforge`의 공용 Cobra 커맨드 트리를 `gz git-sync`로 노출합니다.
패키지 gitsync는 `gzh-cli-gitforge`의 공용 Cobra 커맨드 트리를 `gz git-sync`로 노출합니다.
ide
Package ide provides IDE settings monitoring and synchronization commands.
Package ide provides IDE settings monitoring and synchronization commands.
Package netenv provides network environment management commands.
Package netenv provides network environment management commands.
tui
Package registry provides command registration and lifecycle management.
Package registry provides command registration and lifecycle management.
Package repoconfig provides repository configuration management commands.
Package repoconfig provides repository configuration management commands.
Package shell provides shell integration and command execution functionality.
Package shell provides shell integration and command execution functionality.
Package synclone provides commands for synchronizing and cloning repositories from GitHub, GitLab, Gitea, and other Git platforms.
Package synclone provides commands for synchronizing and cloning repositories from GitHub, GitLab, Gitea, and other Git platforms.

Jump to

Keyboard shortcuts

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