internal

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const CommandUsage = `` /* 411-byte string literal not displayed */

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 IoctlSetTermios added in v0.2.0

func IoctlSetTermios(termios *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 CommandRename added in v0.6.0

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

func (*CommandRename) Run added in v0.6.0

func (r *CommandRename) Run() error

type CommandRm

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

func (*CommandRm) Run

func (r *CommandRm) Run() error

type CommandToTv added in v0.4.0

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

func (*CommandToTv) Run added in v0.4.0

func (r *CommandToTv) Run() error

type CommandUpload

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

func (*CommandUpload) Run

func (r *CommandUpload) Run() error

type Device added in v0.4.0

type Device struct {
	Name string
	URL  string
}

type Termios added in v0.7.0

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

func GetTermios added in v0.7.0

func GetTermios() *Termios

func IoctlGetTermios added in v0.2.0

func IoctlGetTermios() *Termios

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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