Documentation ¶
Index ¶
- Variables
- func Colorize(name string, content []byte, out io.Writer) error
- func Form(c params.CLIContext, sshOptions bool) (params.CLIContext, error)
- func ShowFile(fname string, content []byte, external bool) error
- func ShowFileInternal(fname string, content []byte) error
- func ShowFileInternalWidget(fname string, content []byte) (*tview.TextView, error)
- func TableOfFiles(wd string, callback SelectedCallback, readFile func(string) ([]byte, error), ...) error
- type SelectedAction
- type SelectedCallback
- type SelectedFile
- type UFiles
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrSwitch = errors.New("switch")
Functions ¶
func Form ¶
func Form(c params.CLIContext, sshOptions bool) (params.CLIContext, error)
func ShowFileInternal ¶
func ShowFileInternalWidget ¶
func TableOfFiles ¶
Types ¶
type SelectedAction ¶
type SelectedAction uint8
const ( Init SelectedAction = iota OpenDir OpenFile DeleteFile DeleteDir EditFile )
type SelectedCallback ¶
type SelectedCallback func(*SelectedFile) ([]os.FileInfo, error)
type SelectedFile ¶
Click to show internal directories.
Click to hide internal directories.