cmds

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: MIT Imports: 39 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, vals *values.Values, 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(vals *values.Values) (RepoContext, error)

func (RepoContext) RequestMeta

func (rc RepoContext) RequestMeta() runtime.RequestMeta

type RepoSettings

type RepoSettings struct {
	RepoRoot string `glazed:"repo-root"`
	Config   string `glazed:"config"`
	Strict   bool   `glazed:"strict"`
	DryRun   bool   `glazed:"dry-run"`
	Timeout  string `glazed:"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, vals *values.Values, w io.Writer) error

type StatusSettings

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

Directories

Path Synopsis
dev

Jump to

Keyboard shortcuts

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