Documentation
¶
Overview ¶
Package cmd defines the command line interface of SC2InfoExtractorGo.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRootCmd ¶
NewRootCmd builds the full command tree. The runner performs the actual work, which lets tests verify the flag handling without processing replays.
Types ¶
type Runner ¶
type Runner interface {
// Process downloads the replay dependencies and processes the replays.
Process(flags utils.CLIFlags) error
// DownloadDeps only downloads the replay dependencies.
DownloadDeps(flags utils.CLIFlags) error
// ProcessReplay processes a single replay file and returns its JSON.
ProcessReplay(flags utils.CLIFlags, replayFile string) (string, error)
}
Runner performs the work behind the commands.
func DefaultRunner ¶
func DefaultRunner() Runner
DefaultRunner returns the Runner that runs the real processing pipeline.