cmd

package
v0.32.2 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: GPL-3.0 Imports: 42 Imported by: 0

Documentation

Overview

Package cmd implements wr's command line interface.

It is implemented using cobra, so see github.com/spf13/cobra for details. On top of cobra we use our own config system; see internal/config.go.

cmd/root.go contains general utility functions for use by any of the sub command implementations. It also give the help text you see when you run `wr` by itself.

Each wr sub-command (eg. 'add' or 'manager') is implemented in its own .go file.

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "wr",
	Short: "wr is a software workflow management system.",
	Long: `wr is a software workflow management system and command runner.

You use it to run the same sequence of commands (a "workflow") on many different
input files (which comprise a "datasource").

Initially, you start the management system, which maintains a queue of the
commands you want to run:
$ wr manager start

Then you add commands you want to run to the queue:
$ wr add

At this point your commands should be running, and you can monitor their
progress with:
$ wr status`,
}

RootCmd represents the base command when called without any subcommands.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func ExecuteLSF added in v0.13.0

func ExecuteLSF(cmd string)

ExecuteLSF is for treating a call to wr as if `wr lsf xxx` was called, for the LSF emulation to work.

Types

This section is empty.

Jump to

Keyboard shortcuts

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