cmd

package
v0.0.0-...-c5f1554 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2026 License: MIT Imports: 24 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(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. ctx는 받지 않는다. "Reserved for future context integration"이라고 적어 두고 쓰지 않았는데, 정작 넣어 주던 값은 register.go의 context.Background()라 취소되지도 않는 것이었다. 하위 명령이 맥락을 필요로 하면 각 RunE에서 cmd.Context()를 쓰면 된다 -- root의 ExecuteContext가 넣어 준 진짜 맥락이다.

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 actionspolicy implements the gz actions-policy command.
Package actionspolicy implements the gz actions-policy command.
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 the net-env command bridge to gzh-cli-net-env.
Package netenv provides the net-env command bridge to gzh-cli-net-env.
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.
webhook
Package webhook registers and manages forge webhook configurations.
Package webhook registers and manages forge webhook configurations.
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