Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrPutioTokenRequired is an error for required put.io token ErrPutioTokenRequired = errors.New("please provide put.io token via flags or PUTIO_TOKEN env-var") // ErrPutioTokenInvalid is an error for invalid put.io token ErrPutioTokenInvalid = errors.New("invalid put.io token") // ErrMissingArgs is an error for missing arguments ErrMissingArgs = errors.New("you need to provide args") // FlagColorEnabled hold color output switcher FlagColorEnabled *bool // FlagVersion holds boolean for displaying version information FlagVersion *bool // FlagToken holds put.io token, default value is set from PUTIO_TOKEN env-var FlagToken *string // FlagSetList is a list subcommand FlagSetList *flag.FlagSet // FlagListShowDownloadURL is a boolean option to display list as download url FlagListShowDownloadURL *bool // FlagListShowOnlyID is a boolean option to display list as file id FlagListShowOnlyID *bool // FlagSetUpload is a download subcommand FlagSetUpload *flag.FlagSet // FlagSetMove is a move subcommand FlagSetMove *flag.FlagSet // FlagSetDelete is a delete subcommand FlagSetDelete *flag.FlagSet )
Functions ¶
This section is empty.
Types ¶
type Application ¶
Application represents application structure
func NewApplication ¶
func NewApplication() *Application
NewApplication returns new Application instance
func (*Application) CommandDelete ¶
func (a *Application) CommandDelete() error
CommandDelete deletes given file ids
func (*Application) CommandList ¶
func (a *Application) CommandList() error
CommandList fetches given folder id
func (*Application) CommandMove ¶
func (a *Application) CommandMove() error
CommandMove moves given file ids to target folder
func (*Application) CommandUpload ¶
func (a *Application) CommandUpload() error
CommandUpload @wip - implement file upload soon!
func (*Application) Validate ¶
func (a *Application) Validate() error
Validate validates required params
Click to show internal directories.
Click to hide internal directories.