internal

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cancel added in v0.2.0

func Cancel()

取消

func Exit added in v0.2.0

func Exit(code int)

func IoctlGetTermios added in v0.2.0

func IoctlGetTermios() *unix.Termios

func IoctlSetTermios added in v0.2.0

func IoctlSetTermios(termios *unix.Termios)

Types

type Cli

type Cli struct {
	// contains filtered or unexported fields
}

func NewCli

func NewCli(homedir string) *Cli

func (*Cli) Completer

func (r *Cli) Completer(doc prompt.Document) (res []prompt.Suggest)

func (*Cli) Executor

func (r *Cli) Executor(input string)

func (*Cli) ParseCommand

func (r *Cli) ParseCommand(input string) (Command, error)

func (*Cli) Prefix

func (r *Cli) Prefix() (string, bool)

func (*Cli) PrintFiles

func (r *Cli) PrintFiles(files []*aliyundrive.File)

type Command

type Command interface {
	Run() error
}

type CommandCd

type CommandCd struct {
	// contains filtered or unexported fields
}

func (*CommandCd) Run

func (r *CommandCd) Run() error

type CommandDownload

type CommandDownload struct {
	// contains filtered or unexported fields
}

func (*CommandDownload) Run

func (r *CommandDownload) Run() error

type CommandLs

type CommandLs struct {
	// contains filtered or unexported fields
}

func (*CommandLs) Run

func (r *CommandLs) Run() error

type CommandMkdir

type CommandMkdir struct {
	// contains filtered or unexported fields
}

func (*CommandMkdir) Run

func (r *CommandMkdir) Run() error

type CommandMv

type CommandMv struct {
	// contains filtered or unexported fields
}

func (*CommandMv) Run

func (r *CommandMv) Run() error

type CommandRm

type CommandRm struct {
	// contains filtered or unexported fields
}

func (*CommandRm) Run

func (r *CommandRm) Run() error

type CommandUpload

type CommandUpload struct {
	// contains filtered or unexported fields
}

func (*CommandUpload) Run

func (r *CommandUpload) Run() error

Jump to

Keyboard shortcuts

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