menu

package
v0.0.1-20230818-0001 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InternalCommandOptions

type InternalCommandOptions struct {
	Args                 []string
	Release              bool
	RunDaemonFromExecDir bool
}
type Menu struct {
	RootCmd *cobra.Command
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context) *Menu
func (m *Menu) AddCommand(c *command.AddCmd) *Menu

AddCommand -> Adding commands

func (m *Menu) AddCommands(c []*command.AddCmd) *Menu
func (m *Menu) Execute() error

Execute executes the root Command.

func (m *Menu) IsDaemon() bool
func (m *Menu) RunInternalCommand(options InternalCommandOptions) (*exec.Cmd, error)

func (m *Menu) RunInternalCommand(arg ...string) (*exec.Cmd, error) {

Jump to

Keyboard shortcuts

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