tools

package
v0.0.0-...-d57bbc6 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UploadCommand

type UploadCommand struct {
	common.Auth      `group:"auth options"`
	UploadPositional `positional-args:"yes" required:"yes"`

	ChatID  string   `short:"C" long:"chat-id" env:"DNQ_CHAT_ID" required:"true" description:"chat id: unique int id or @username."`
	Caption string   `short:"c" long:"caption" description:"set caption for the uploaded file."`
	Matches []string `short:"m" long:"matches" description:"a keyword matching list"`
	Output  string   `` /* 150-byte string literal not displayed */
}

func (*UploadCommand) Execute

func (command *UploadCommand) Execute(_ []string) (err error)

type UploadPositional

type UploadPositional struct {
	Filename flags.Filename `positional-arg-name:"file" env:"DNQ_UPLOAD_FILE" description:"upload file name."`
}

Jump to

Keyboard shortcuts

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