flags

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package flags provides shared flag accessors for CLI commands. This package exists to avoid import cycles between the root command and noun subpackages (skill, mcp, agent, etc.).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddScopeFlag added in v0.7.0

func AddScopeFlag(cmd *cobra.Command)

AddScopeFlag adds the --scope flag to the given command.

func GetPlatformFlag

func GetPlatformFlag() []string

GetPlatformFlag returns the current value of the --platform flag. This is used by subcommands to access the flag value.

func GetScopeFlag added in v0.7.0

func GetScopeFlag() string

GetScopeFlag returns the current value of the --scope flag.

func SetPlatformFlag

func SetPlatformFlag(platforms []string)

SetPlatformFlag sets the platform flag value. This is used by the root command to set the flag value after parsing, and for programmatic override (e.g., interactive mode).

func SetScopeFlag added in v0.7.0

func SetScopeFlag(scope string)

SetScopeFlag sets the scope flag value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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