Documentation
¶
Index ¶
- type ByName
- type BySize
- type ByTime
- type FileInfos
- type PathSet
- type RunSftp
- func (r *RunSftp) Completer(t prompt.Document) []prompt.Suggest
- func (r *RunSftp) CreatePrompt() (p string, result bool)
- func (r *RunSftp) Executor(command string)
- func (r *RunSftp) GetLocalComplete(path string)
- func (r *RunSftp) GetRemoteComplete(path string)
- func (r *RunSftp) PathComplete(remote bool, num int, t prompt.Document) []prompt.Suggest
- func (r *RunSftp) SortLsData(c *cli.Context, files []os.FileInfo)
- func (r *RunSftp) Start()
- type SftpConnect
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RunSftp ¶
type RunSftp struct {
// select server
SelectServer []string
// config
Config conf.Config
// Client
// TODO(blacknon): Clientと、ターゲットを分けて処理する(ホストをコマンド実行時に指定できるようにするため)
Client map[string]*SftpConnect
// Target
Target map[string]*SftpConnect
// ssh Run
Run *sshl.Run
// now not use. delete at 0.6.1
Permission bool
// progress bar
Progress *mpb.Progress
ProgressWG *sync.WaitGroup
// PathComplete
RemoteComplete []prompt.Suggest
LocalComplete []prompt.Suggest
}
RunSftp struct sftp run
func (*RunSftp) Completer ¶
Completer is sftp Shell mode function TODO(blacknon): PATH補完については、flagを見て対象のコマンドラインの初回だけ行わせるようにする(プロンプトが切り替わる度にflagをfalse or trueにすることで対処?)
func (*RunSftp) CreatePrompt ¶
CreatePrompt return prompt string.
func (*RunSftp) GetLocalComplete ¶
GetLocalComplete set r.LocalComplete
func (*RunSftp) GetRemoteComplete ¶
GetRemoteComplete set r.RemoteComplete
func (*RunSftp) PathComplete ¶
PathComplete return path complete data
func (*RunSftp) SortLsData ¶
SortLsData is sort []os.FileInfo.
Click to show internal directories.
Click to hide internal directories.