cmd

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: May 26, 2026 License: MIT Imports: 40 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAPICmd

func NewAPICmd(f *cmdutil.Factory) *cobra.Command

NewAPICmd creates the api command.

func NewAuthCmd

func NewAuthCmd(f *cmdutil.Factory) *cobra.Command

NewAuthCmd creates the auth command group.

func NewBranchCmd added in v0.3.0

func NewBranchCmd(f *cmdutil.Factory) *cobra.Command

NewBranchCmd creates the branch command group.

func NewBrowseCmd

func NewBrowseCmd(f *cmdutil.Factory) *cobra.Command

NewBrowseCmd creates the browse command.

func NewCompletionCmd

func NewCompletionCmd() *cobra.Command

NewCompletionCmd creates the completion command.

func NewConfigCmd

func NewConfigCmd(f *cmdutil.Factory) *cobra.Command

NewConfigCmd creates the config command group.

func NewDeploymentCmd added in v0.2.0

func NewDeploymentCmd(f *cmdutil.Factory) *cobra.Command

NewDeploymentCmd creates the deployment command group.

func NewEnvironmentCmd added in v0.2.0

func NewEnvironmentCmd(f *cmdutil.Factory) *cobra.Command

NewEnvironmentCmd creates the environment command group.

func NewIssueCmd

func NewIssueCmd(f *cmdutil.Factory) *cobra.Command

NewIssueCmd creates the issue command group.

func NewLabelCmd

func NewLabelCmd(f *cmdutil.Factory) *cobra.Command

NewLabelCmd creates the label command group.

func NewMCPCmd added in v0.2.0

func NewMCPCmd(f *cmdutil.Factory) *cobra.Command

NewMCPCmd creates the mcp command group.

func NewMRCmd

func NewMRCmd(f *cmdutil.Factory) *cobra.Command

NewMRCmd creates the merge request command group.

func NewPackageCmd added in v0.2.0

func NewPackageCmd(f *cmdutil.Factory) *cobra.Command

NewPackageCmd creates the package command group.

func NewPipelineCmd

func NewPipelineCmd(f *cmdutil.Factory) *cobra.Command

NewPipelineCmd creates the pipeline command group.

func NewProjectCmd

func NewProjectCmd(f *cmdutil.Factory) *cobra.Command

NewProjectCmd creates the project command group.

func NewRegistryCmd added in v0.2.0

func NewRegistryCmd(f *cmdutil.Factory) *cobra.Command

NewRegistryCmd creates the registry command group.

func NewReleaseCmd

func NewReleaseCmd(f *cmdutil.Factory) *cobra.Command

NewReleaseCmd creates the release command group.

func NewRepoCmd

func NewRepoCmd(f *cmdutil.Factory) *cobra.Command

NewRepoCmd creates the repo command group.

func NewRootCmd

func NewRootCmd(version string) *cobra.Command

NewRootCmd creates the root command for glab.

func NewSnippetCmd

func NewSnippetCmd(f *cmdutil.Factory) *cobra.Command

NewSnippetCmd creates the snippet command group.

func NewTagCmd added in v0.3.0

func NewTagCmd(f *cmdutil.Factory) *cobra.Command

NewTagCmd creates the tag command group.

func NewUpgradeCmd added in v0.0.12

func NewUpgradeCmd(f *cmdutil.Factory) *cobra.Command

NewUpgradeCmd creates the upgrade command.

func NewUserCmd added in v0.3.0

func NewUserCmd(f *cmdutil.Factory) *cobra.Command

NewUserCmd creates the user command group.

func NewVariableCmd added in v0.2.0

func NewVariableCmd(f *cmdutil.Factory) *cobra.Command

NewVariableCmd creates the variable command group.

Types

type FlakyJobStats added in v0.2.0

type FlakyJobStats struct {
	JobName       string  `json:"job_name"`
	Stage         string  `json:"stage"`
	TotalRuns     int     `json:"total_runs"`
	SuccessCount  int     `json:"success_count"`
	FailureCount  int     `json:"failure_count"`
	FlakinessRate float64 `json:"flakiness_rate"`
	LastFailure   string  `json:"last_failure,omitempty"`
	LastSuccess   string  `json:"last_success,omitempty"`
}

FlakyJobStats represents statistics for a potentially flaky job.

type FlakyJobsResult added in v0.2.0

type FlakyJobsResult struct {
	Jobs           []FlakyJobStats `json:"jobs"`
	TotalPipelines int             `json:"total_pipelines"`
	TotalJobs      int             `json:"total_jobs"`
	FlakyJobs      int             `json:"flaky_jobs"`
	TimePeriodDays int             `json:"time_period_days"`
	Branch         string          `json:"branch,omitempty"`
}

FlakyJobsResult represents the result of the flaky jobs analysis.

type JobDurationStats added in v0.2.0

type JobDurationStats struct {
	JobName         string  `json:"job_name"`
	Stage           string  `json:"stage"`
	TotalRuns       int     `json:"total_runs"`
	AverageDuration float64 `json:"average_duration"`
	MinDuration     float64 `json:"min_duration"`
	MaxDuration     float64 `json:"max_duration"`
	TotalDuration   float64 `json:"total_duration"`
}

JobDurationStats represents aggregated job duration statistics.

type PipelineStats added in v0.2.0

type PipelineStats struct {
	TotalPipelines int     `json:"total_pipelines"`
	SuccessCount   int     `json:"success_count"`
	FailedCount    int     `json:"failed_count"`
	CanceledCount  int     `json:"canceled_count"`
	SkippedCount   int     `json:"skipped_count"`
	RunningCount   int     `json:"running_count"`
	PendingCount   int     `json:"pending_count"`
	SuccessRate    float64 `json:"success_rate"`
	FailureRate    float64 `json:"failure_rate"`
	TimePeriodDays int     `json:"time_period_days"`
	Branch         string  `json:"branch,omitempty"`
}

PipelineStats represents pipeline statistics.

type PipelineTrends added in v0.2.0

type PipelineTrends struct {
	Buckets         []TrendBucket `json:"buckets"`
	OverallTrend    string        `json:"overall_trend"`
	TrendPercentage float64       `json:"trend_percentage"`
	TotalPipelines  int           `json:"total_pipelines"`
	TimePeriodDays  int           `json:"time_period_days"`
	BucketSizeDays  int           `json:"bucket_size_days"`
	Branch          string        `json:"branch,omitempty"`
}

PipelineTrends represents pipeline duration trends over time.

type SlowestJobsResult added in v0.2.0

type SlowestJobsResult struct {
	Jobs           []JobDurationStats `json:"jobs"`
	TotalPipelines int                `json:"total_pipelines"`
	TotalJobs      int                `json:"total_jobs"`
	TimePeriodDays int                `json:"time_period_days"`
	Branch         string             `json:"branch,omitempty"`
}

SlowestJobsResult represents the result of the slowest jobs analysis.

type TrendBucket added in v0.2.0

type TrendBucket struct {
	StartDate       time.Time `json:"start_date"`
	EndDate         time.Time `json:"end_date"`
	PipelineCount   int       `json:"pipeline_count"`
	AverageDuration float64   `json:"average_duration"`
	MinDuration     float64   `json:"min_duration"`
	MaxDuration     float64   `json:"max_duration"`
	TotalDuration   float64   `json:"total_duration"`
}

TrendBucket represents pipeline durations for a specific time period.

Jump to

Keyboard shortcuts

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