Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CommandNormalize = cli.Command{ Name: "normalize", Description: normalizeDescription, Action: commandNormalize, Flags: []cli.Flag{ &cli.PathFlag{ Name: "input", Usage: "path to the input ACMI file", Required: true, }, &cli.PathFlag{ Name: "output", Usage: "path to the output ACMI file", Required: true, }, &cli.StringSliceFlag{ Name: "exclude-property", Usage: "provide a key=value property pair that will cause matching objects to be excluded from the output", }, &cli.IntFlag{ Name: "concurrency", Usage: "number of parallel processing routines to run", Value: runtime.GOMAXPROCS(-1), }, }, }
CommandNormalize handles rewriting ACMI files
View Source
var CommandSearch = cli.Command{ Name: "search", Description: "search for an object", Action: commandSearch, Flags: []cli.Flag{ &cli.StringSliceFlag{ Name: "file", Usage: "path to tacview files you'd like to search", TakesFile: true, Required: true, }, &cli.StringSliceFlag{ Name: "property", Usage: "provide a key=value property pair to search for", }, &cli.BoolFlag{ Name: "print-properties", Usage: "print found object properties", }, &cli.BoolFlag{ Name: "json", Usage: "output data as JSON", }, &cli.IntFlag{ Name: "concurrency", Usage: "number of parallel processing routines to run", Value: runtime.GOMAXPROCS(-1), }, }, }
CommandSearch handles searching a tacview for objects with a given set of properties
View Source
var CommandTrim = cli.Command{ Name: "trim", Description: "trim a tacview to reduce its duration", Action: commandTrim, Flags: []cli.Flag{ &cli.PathFlag{ Name: "input", Usage: "path to the input ACMI file", Required: true, }, &cli.PathFlag{ Name: "output", Usage: "path to the output ACMI file", Required: true, }, &cli.Float64Flag{ Name: "start-at-offset-time", Usage: "set the start point via an offset time", }, &cli.Float64Flag{ Name: "end-at-offset-time", Usage: "set the end point via an offset time", }, &cli.StringFlag{ Name: "start-at-time", Usage: "set the start point via a RFC3999 timestamp", }, &cli.StringFlag{ Name: "end-at-time", Usage: "set the end point via a RFC3999 timestamp", }, &cli.IntFlag{ Name: "concurrency", Usage: "number of parallel processing routines to run", Value: runtime.GOMAXPROCS(-1), }, }, }
CommandTrim handles trimming a tacview file
Functions ¶
This section is empty.
Types ¶
type JambonNoopProcessor ¶
type JambonNoopProcessor struct {
// contains filtered or unexported fields
}
func NewJambonNoopProcessor ¶
func NewJambonNoopProcessor(dest io.WriteCloser) *JambonNoopProcessor
func (*JambonNoopProcessor) ProcessFile ¶
func (j *JambonNoopProcessor) ProcessFile(source *tacview.Reader) error
type JambonProcessor ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.