cmd

package
v0.0.0-...-7072be7 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RootCmd = &cobra.Command{
		Use:   "rotation",
		Short: "`rotation` generates, extends, and syncs rotation schedules.",
		Long: `This tool generates and manipulates a human-readable and version-controllable
text file for an on-call, chore, or duty rotations among a set of individuals. Each shift only
needs a start date and the user on rotation. The stop date is implied by the start of
the next shift, except for the last shift, which is explicitly specified (the stop date is inclusive).
If a user needs to change or swap shifts, but keep the same rotation cycle, use the 'userOverride' field.

Example:
<pre>
shifts:
- startDate: Sun 01 Mar 2020
  user: abc
- startDate: Sun 08 Mar 2020
  user: lmn
  userOverride: xyz
- startDate: Sun 15 Mar 2020
  user: xyz
  userOverride: lmn
- startDate: Sun 22 Mar 2020
  stopDate: Sat 28 Mar 2020
  user: abc
</pre>

The --record option is used solely for testing. It records interactions with external services 
(like GitHub and Google Calendar) without having to write a bunch of brittle mock classes.
`,
		SilenceUsage: true,
	}
)

Functions

func Execute

func Execute() error

Execute executes the root command.

Types

This section is empty.

Jump to

Keyboard shortcuts

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