Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GetCmd = cli.Command{ Name: "service", Aliases: []string{"services"}, Description: "Use this command to get a list of services.", Usage: "Display a list of services", Action: get, 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: "Provide the build number", EnvVar: "BUILD_NUMBER", }, cli.IntFlag{ Name: "page,p", Usage: "Print a specific page of services", Value: 1, }, cli.IntFlag{ Name: "per-page,pp", Usage: "Expand the number of items contained within page", Value: 10, }, cli.StringFlag{ Name: "output,o", Usage: "Print the output in wide, yaml or json format", }, }, CustomHelpTemplate: fmt.Sprintf(`%s EXAMPLES: 1. Get services for a build. $ {{.HelpName}} --org github --repo octocat --build-number 1 2. Get services for a build with wide view output. $ {{.HelpName}} --org github --repo octocat --build-number 1 --output wide 3. Get services for a build with yaml output. $ {{.HelpName}} --org github --repo octocat --build-number 1 --output yaml 4. Get services for a build with json output. $ {{.HelpName}} --org github --repo octocat --build-number 1 --output json 5. Get services for a build when org and repo config or environment variables are set. $ {{.HelpName}} --number 1 `, cli.CommandHelpTemplate), }
GetCmd defines the command for getting a list of services.
View Source
var ViewCmd = cli.Command{ Name: "service", Description: "Use this command to view a service.", Usage: "View details of the provided service", 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: "Provide the build number", EnvVar: "BUILD_NUMBER", }, cli.IntFlag{ Name: "service-number,service,s", Usage: "Provide the service number", EnvVar: "SERVICE_NUMBER", }, cli.StringFlag{ Name: "output,o", Usage: "Print the output in json format", }, }, CustomHelpTemplate: fmt.Sprintf(`%s EXAMPLES: 1. Get service details for a repository. $ {{.HelpName}} --org github --repo octocat --build-number 1 --service-number 1 2. Get service details for a repository with json output. $ {{.HelpName}} --org github --repo octocat --build-number 1 --service-number 1 --output json 3. Get service details for a repository when org and repo config or environment variables are set. $ {{.HelpName}} --build-number 1 --service-number 1 `, cli.CommandHelpTemplate), }
ViewCmd defines the command for viewing a service.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.