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.
Click to show internal directories.
Click to hide internal directories.