args

package
v0.2.13 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Url          string `short:"u" long:"url" description:"Url from website. Start with http[s]://" required:"false"`
	Out          string `short:"o" long:"out" description:"The output file will be place to here(dir/filename). Default: current dir" required:"false"`
	ResourceType string `short:"t" long:"type" description:"The resource type you want to get [auto/audio/video/all]" required:"false" default:"auto"`
	MetaOnly     bool   `short:"m" long:"metaOnly" description:"Output meta info only. Would not download audio" required:"false"`
	InfoFormat   string `long:"infoFormat" description:"Support plain/json. Default: plain" required:"false"`
	AddMediaTag  bool   `long:"addMediaTag" description:"Add media tag into file from meta information" required:"false"`
	LogLevel     string `short:"l" long:"logLevel" description:"Support: silence/error/warn/info/debug. Default: info" required:"false"`

	Search Search `group:"Search Options"`

	IsDir bool
}

func CheckAndParse

func CheckAndParse() (opt *Options, err error)
type Search struct {
	Keyword        string `` /* 195-byte string literal not displayed */
	SongName       string `long:"searchSongName" description:"song name" required:"false"`
	Artist         string `long:"searchArtist" description:"artist name" required:"false"`
	Album          string `long:"searchAlbum" description:"album name" required:"false"`
	Type           string `long:"searchType" description:"Support: song, Default: song" required:"false"`
	Sources        string `` /* 176-byte string literal not displayed */
	ExcludeSources string `long:"excludeSource" description:"Search not in the specific source, separate with comma" required:"false"`

	SourcesWillBeSearch []string
}

nolint

Jump to

Keyboard shortcuts

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