cmds

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCommands

func AddCommands(root *cobra.Command) error

func AddDynamicPluginCommands

func AddDynamicPluginCommands(root *cobra.Command, args []string) error

func AddRepoFlags

func AddRepoFlags(cmd *cobra.Command)

Types

type PluginsListCommand

type PluginsListCommand struct {
	*glazedcmds.CommandDescription
}

func NewPluginsListCommand

func NewPluginsListCommand() (*PluginsListCommand, error)

func (*PluginsListCommand) RunIntoWriter

func (c *PluginsListCommand) RunIntoWriter(ctx context.Context, parsedLayers *layers.ParsedLayers, w io.Writer) error

type RepoContext

type RepoContext struct {
	RepoRoot   string
	ConfigPath string
	Cwd        string
	Strict     bool
	DryRun     bool
	Timeout    time.Duration
}

func RepoContextFromCobra

func RepoContextFromCobra(cmd *cobra.Command) (RepoContext, error)

func RepoContextFromParsedLayers

func RepoContextFromParsedLayers(parsedLayers *glazedlayers.ParsedLayers) (RepoContext, error)

func (RepoContext) RequestMeta

func (rc RepoContext) RequestMeta() runtime.RequestMeta

type RepoSettings

type RepoSettings struct {
	RepoRoot string `glazed.parameter:"repo-root"`
	Config   string `glazed.parameter:"config"`
	Strict   bool   `glazed.parameter:"strict"`
	DryRun   bool   `glazed.parameter:"dry-run"`
	Timeout  string `glazed.parameter:"timeout"` // duration string, e.g. "30s"
}

type StatusCommand

type StatusCommand struct {
	*glazedcmds.CommandDescription
}

func NewStatusCommand

func NewStatusCommand() (*StatusCommand, error)

func (*StatusCommand) RunIntoWriter

func (c *StatusCommand) RunIntoWriter(ctx context.Context, parsedLayers *layers.ParsedLayers, w io.Writer) error

type StatusSettings

type StatusSettings struct {
	TailLines int `glazed.parameter:"tail-lines"`
}

Directories

Path Synopsis
dev

Jump to

Keyboard shortcuts

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