cmdShell

package module
v0.0.0-...-ff4a37b Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: GPL-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

View Source
const Group = "Shell"

Variables

This section is empty.

Functions

This section is empty.

Types

type Shell

type Shell struct {
	*ishell.Shell

	SelfCmd *cobra.Command
	Error   error
	// contains filtered or unexported fields
}

func New

func New(name string, version string, configDir string) *Shell

func (*Shell) AttachCommands

func (s *Shell) AttachCommands(cmd *cobra.Command) *cobra.Command

func (*Shell) BuildCmd

func (s *Shell) BuildCmd(cmd *cobra.Command, parent *ShellCmd) *ShellCmd

func (*Shell) CmdFunc

func (s *Shell) CmdFunc(c *ishell.Context)

func (*Shell) CmdHelpAll

func (s *Shell) CmdHelpAll(_ *cobra.Command, _ []string) error

func (*Shell) InitArgs

func (s *Shell) InitArgs(_ *cobra.Command, _ []string) error

func (*Shell) ReparseArgs

func (s *Shell) ReparseArgs(args ...string) error

func (*Shell) RunShell

func (s *Shell) RunShell() error

type ShellCmd

type ShellCmd struct {
	Ishell *ishell.Cmd
	Cobra  *cobra.Command
}

Jump to

Keyboard shortcuts

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