cmd

package
v0.0.0-...-a7ea9e0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2016 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "hipchat-cli",
	Short: "A CLI for common hipchat actions",
	Long: `This hipchat cli is intended to be used in scripts.

Examples of its use:
#gets topic of a room
hipchat-cli room topic --room <room>
#sets topic for a room
hipchat-cli room topic --room <room> --topic <topic>

#send notifications to a room
hipchat-cli room notify --room <room> --message <msg>

#shows a message with information regarding a monitoring alert, including handy links.
hipchat-cli nagios --room production  --type service --status critical --service "Apache process" --output "ok - pid found" \
  --host main-web-100 --monitorurl https://nagios.com/dashboard/ \
  --actions "CreateTicket:http://jira.com"  --actions "Ack:http://nagios.com?a=ack&alert=x"
`,
	SilenceUsage: true,
}

RootCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute()

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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