Documentation ¶
Index ¶
- Variables
- type Base
- type Command
- func Bucket() Command
- func Create() Command
- func Download() Command
- func Files() Command
- func Freeze() Command
- func Help() Command
- func Login() Command
- func Ls() Command
- func Migrate() Command
- func Remove() Command
- func Rename() Command
- func Unfreeze() Command
- func Upload() Command
- func Verify() Command
- func Version() Command
- type Config
- type Env
- type Streams
Constants ¶
This section is empty.
Variables ¶
View Source
var Root *root
Root handles the commands
Functions ¶
This section is empty.
Types ¶
type Base ¶
type Base struct { Config Flags mflag.FlagSet *api.OnlineAPI // contains filtered or unexported fields }
Base must be embedded in the commands
func (*Base) CheckFlags ¶
CheckFlags can be overloaded by the commands to check the flags
func (*Base) ExamplesHelp ¶
ExamplesHelp returns the examples, it used by PrintUsage
type Command ¶
type Command interface { GetName() string Parse(args []string) ([]string, error) Run(args []string) error CheckFlags(args []string) error PrintUsage() }
Command is the interface that is used to handle the commands
Click to show internal directories.
Click to hide internal directories.