Help us shape the future of Go! Take the 2026 Go Developer Survey

cliargs

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package cliargs holds the shared Cobra flag grammar used by the CLI and process identity validation. It never executes a command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsRunnableServe

func IsRunnableServe(argv []string) bool

IsRunnableServe asks Cobra's Find, flag parser and argument validator whether argv selects a running serve command. This uses fresh commands for every identity check, avoiding mutations to the live CLI's flags.

func RegisterRootFlags

func RegisterRootFlags(root *cobra.Command)

func RegisterServeFlags

func RegisterServeFlags(serve *cobra.Command, daemon *bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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