log

package
v0.2.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ViewCmd = cli.Command{
	Name:        "log",
	Aliases:     []string{"logs"},
	Description: "Use this command to capture the logs from a build or step.",
	Usage:       "View logs from the provided build or step",
	Action:      view,
	Before:      validate,
	Flags: []cli.Flag{

		cli.StringFlag{
			Name:   "org",
			Usage:  "Provide the organization for the repository",
			EnvVar: "BUILD_ORG",
		},
		cli.StringFlag{
			Name:   "repo",
			Usage:  "Provide the repository contained with the organization",
			EnvVar: "BUILD_REPO",
		},
		cli.IntFlag{
			Name:   "build-number,build,b",
			Usage:  "Print the output in wide, yaml or json format",
			EnvVar: "BUILD_NUMBER",
		},
	},
	CustomHelpTemplate: fmt.Sprintf(`%s
EXAMPLES:
 1. View build logs for a repository.
    $ {{.HelpName}} --org github --repo octocat --build-number 1
 2. View build logs for a repository when org and repo config or environment variables are set.
    $ {{.HelpName}} --build-number 1
`, cli.CommandHelpTemplate),
}

ViewCmd defines the command for viewing the logs from a build or step.

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