Documentation
¶
Overview ¶
Package cli builds the ccrawl command tree on top of the ccrawl 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 ccrawl.Config
HTTP *ccrawl.HTTPClient
Cache *ccrawl.Cache
Out *Output
Limit int
Workers int
UseLibrary bool
LibraryDir string
// contains filtered or unexported fields
}
App carries the resolved configuration and shared clients for a command run.
func (*App) AllCrawls ¶
AllCrawls returns the crawl IDs to operate over when -c all/year is given, newest first, otherwise the single resolved crawl.
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.