arguments

package
v0.0.0-...-9e8ec43 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommandLineFlag = []cli.Flag{
	cli.StringFlag{
		Name:        "d, download",
		Value:       "",
		Usage:       "Input IllustID to download illusts.",
		Destination: &CommandLines.IllustID,
	},
	cli.StringFlag{
		Name:        "u, url",
		Value:       "",
		Usage:       "Input pixiv url to download illusts",
		Destination: &CommandLines.URL,
	},
	cli.StringFlag{
		Name:        "a, author",
		Value:       "",
		Usage:       "Input AuthorID to download Author illusts.",
		Destination: &CommandLines.AuthorID,
	},
	cli.IntFlag{
		Name:        "user, userid",
		Value:       0,
		Usage:       "Input user id to change default user id",
		Destination: &CommandLines.UserID,
	},
	cli.IntFlag{
		Name:        "m, max",
		Value:       16,
		Usage:       "Input max thread number",
		Destination: &CommandLines.ThreadMax,
	},
	cli.BoolFlag{
		Name:        "f, following",
		Usage:       "Download illusts from following users",
		Destination: &CommandLines.Following,
	},
	cli.BoolFlag{
		Name:        "r, recommend",
		Usage:       "Download recommend illusts",
		Destination: &CommandLines.Recommend,
	},
	cli.BoolFlag{
		Name:        "s, stars",
		Usage:       "download stars illusts.",
		Destination: &CommandLines.Stars,
	},
	cli.BoolFlag{
		Name:        "rk, ranking",
		Usage:       "Download ranking illusts.",
		Destination: &CommandLines.Ranking,
	},
	cli.BoolFlag{
		Name:        "l, login",
		Usage:       "login pixiv account",
		Destination: &CommandLines.Login,
	},
	cli.BoolFlag{
		Name:        "n, novel",
		Usage:       "download novel",
		Destination: &CommandLines.IsNovel,
	},
}
View Source
var CommandLines = Command{}

Functions

This section is empty.

Types

type Command

type Command struct {
	IllustID  string
	Name      string
	URL       string
	AuthorID  string
	Following bool
	Recommend bool
	Ranking   bool
	Stars     bool
	Login     bool
	IsNovel   bool
	ThreadMax int
	UserID    int
}

Jump to

Keyboard shortcuts

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