Versions in this module Expand all Collapse all v0 v0.3.1 Jul 31, 2019 Changes in this version + var ErrSwitch = errors.New("switch") + 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 uint8 + const DeleteDir + const DeleteFile + const EditFile + const Init + const OpenDir + const OpenFile + type SelectedCallback func(*SelectedFile) ([]os.FileInfo, error) + type SelectedFile struct + Action SelectedAction + Err error + IsDir bool + Mode os.FileMode + Name string + Position int + Size int64 + type UFiles struct + AllFiles []sys.UFile + Dirs []sys.UFile + Irregulars []sys.UFile + Regulars []sys.UFile + func (all *UFiles) Init(files []os.FileInfo, remote bool) *UFiles