cmd

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: May 31, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "spinner",
	Short: "Spinner is a Service Monitor for Windows that also tails a log file and echoes to Stdout.",
	Long: `Spinner is meant to be uses as the entrypoint/cmd for Windows containers
where the process can't be invoked directly. This ensures that if the service stops
the container will terminate and your container orchestration can take necessary
steps to restart the application.`,
	Example: `spinner.exe service W3SVC -t c:\\iislog\\W3SVC\\u_extend1.log
spinner.exe site http://localhost -t c:\\iislog\\W3SVC\\u_extend1.log`,
}

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.

func TailLog

func TailLog()

TailLog will echo the contents of a given file to stdout.

Types

This section is empty.

Jump to

Keyboard shortcuts

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