browse

package
v3.49.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BrowseCmd

type BrowseCmd struct {
	// Build is an optional build reference. It may be a build number, an
	// "org/pipeline/number" slug, or a full buildkite.com build URL. When
	// omitted, the resolved pipeline page is opened instead.
	Build       string `arg:"" optional:"" help:"Build number, org/pipeline/number slug, or build URL to open. Omit to open the pipeline page."`
	Pipeline    string `help:"The pipeline to use. This can be a {pipeline slug} or in the format {org slug}/{pipeline slug}." short:"p"`
	Branch      string `help:"Filter the pipeline builds list to this branch. Defaults to the current git branch." short:"b"`
	AllBranches bool   `help:"Open the pipeline builds list without a branch filter." name:"all-branches"`
	Settings    bool   `help:"Open the pipeline's settings page." short:"s"`
	NoBrowser   bool   `help:"Print destination URL instead of opening the browser." short:"n" name:"no-browser"`
}

BrowseCmd opens Buildkite resources in a web browser, resolving the pipeline from the current project (or flags) the same way other commands do.

When the pipeline page is opened (no build number, no --settings), the builds list is filtered to the current git branch by default. Use --branch to filter to a specific branch, or --all-branches to show the unfiltered list.

func (*BrowseCmd) Help

func (c *BrowseCmd) Help() string

func (*BrowseCmd) Run

func (c *BrowseCmd) Run(kongCtx *kong.Context, globals cli.GlobalFlags) error

Jump to

Keyboard shortcuts

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