Documentation
¶
Overview ¶
Package cli builds the ytb command tree on top of the youtube library.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version = "dev" Commit = "none" Date = "unknown" )
Build metadata, set via -ldflags at release time.
Functions ¶
Types ¶
type App ¶
type App struct {
Cfg youtube.Config
Client *youtube.Client
Out *Output
DBPath string
Limit int
MaxPages int
Workers int
YtDlpBin string
FFmpegBin string
// contains filtered or unexported fields
}
App carries the resolved configuration and shared clients for a command run.
func (*App) PageOptions ¶
func (a *App) PageOptions(enrich bool) youtube.PageOptions
PageOptions builds a PageOptions from the global -n / --max-pages flags.
func (*App) RequireStore ¶
RequireStore returns the store or a usage error if --db is unset.
type Output ¶
type Output struct {
// contains filtered or unexported fields
}
Output renders rows in the selected format. A single Output instance handles a whole command run, so streaming formats can write incrementally.
Click to show internal directories.
Click to hide internal directories.