cmd

package
v0.0.0-...-78c6ce3 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package cmd implements the command-line actions for the application.

Index

Constants

This section is empty.

Variables

View Source
var (
	Start = cli.Command{
		Name:   "start",
		Usage:  "Starts the pipeline's processing",
		Action: start,
		Flags: []cli.Flag{
			&cli.StringFlag{
				Name:  "path",
				Usage: "path to the directory containing files to process",
				Value: "/tmp",
			},
			&cli.Uint64Flag{
				Name:  "sbs",
				Usage: "(scannerBufferSize) is the number of reusable bytes to use for the directory scanner's work",
				Value: kDefaultScannerBufferSize,
			},
			&cli.Uint64Flag{
				Name:  "pcs",
				Usage: "(pathChanSize) is the number of file system paths that will be buffered in a channel in the pipeline",
				Value: kDefaultPathsChannelSize,
			},
			&cli.Uint64Flag{
				Name:  "pcc",
				Usage: "(pathConsumerCount) is the number of concurrent and parallel goroutines that will consume paths from a channel in the pipeline",
				Value: kDefaultPathConsumerCount,
			},
		},
	}

	// Variable APipeline is the pipeline that has been created using the command-line information.
	// It is a global value that others can use.
	APipeline IPipeline = nil
)

Variable Start is a command that defines the command line for starting the pipeline's processing.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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