cmd

package
v0.0.0-...-7601165 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2026 License: GPL-3.0 Imports: 18 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func NewRootCmd(runner Runner) *cobra.Command

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.

Jump to

Keyboard shortcuts

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