cmd

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteContext added in v0.4.1

func ExecuteContext(ctx context.Context)

ExecuteContext 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. ctx は SIGINT/SIGTERM でキャンセルされる context を渡すことで、各コマンドの cmd.Context() を通じて graceful shutdown を可能にする。

func SetVersionInfo added in v0.1.4

func SetVersionInfo(version, commit, date string)

SetVersionInfo wires release metadata from main into the cmd package. Called once from main.main before Execute.

Types

This section is empty.

Directories

Path Synopsis
internal
cliutil
Package cliutil collects boilerplate shared across cobra commands in cmd/.
Package cliutil collects boilerplate shared across cobra commands in cmd/.

Jump to

Keyboard shortcuts

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