command

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	SilenceUsage:       true,
	DisableSuggestions: true,
}

RootCmd represents a root command for all subcommands. This command does not contain any behavior but only proxies the execution to the subcommands.

Functions

func Execute

func Execute(args []string, out io.Writer) error

Execute executes the root command. It requires the input and output sources, as otherwise it'll try to read the STDIN and STDOUT streams. The "args" value contains a complete command expression split into a slice of strings, and the "out" represents io.Writer instance for writing the command execution result.

Types

type Model

type Model struct {
	// contains filtered or unexported fields
}

func NewModel

func NewModel(onStateChange func()) *Model

func (*Model) Enable

func (m *Model) Enable()

func (*Model) Enabled

func (m *Model) Enabled() bool

func (*Model) Init

func (m *Model) Init() tea.Cmd

func (*Model) SetPathContext

func (m *Model) SetPathContext(path string, entries []string)

func (*Model) Update

func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*Model) View

func (m *Model) View() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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