cmd

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: BSD-3-Clause Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New added in v0.13.0

func New() *cobra.Command

Types

type CommandOutput added in v0.13.0

type CommandOutput interface {
	GetError() error
	SetError(error)
}

type ContentOutput added in v0.13.0

type ContentOutput struct {
	Repository   string              `json:"repository,omitempty" yaml:"repository,omitempty"`
	SHA          string              `json:"sha" yaml:"sha"`
	Updated      bool                `json:"updated" yaml:"updated"`
	PullRequest  *remote.PullRequest `json:"pullrequest,omitempty" yaml:"pullrequest,omitempty"`
	Error        error               `json:"-" yaml:"-"`
	ErrorMessage string              `json:"error,omitempty" yaml:"error,omitempty"`
}

func (*ContentOutput) GetError added in v0.13.0

func (o *ContentOutput) GetError() error

func (*ContentOutput) SetError added in v0.13.0

func (o *ContentOutput) SetError(err error)

type DebugOutput added in v0.13.0

type DebugOutput struct {
	Remote   remote.Repo            `json:"remote" yaml:"remote"`
	HasToken bool                   `json:"has_token" yaml:"has_token"`
	Branch   string                 `json:"branch" yaml:"branch"`
	Commit   string                 `json:"commit,omitempty" yaml:"commit,omitempty"`
	Clean    bool                   `json:"clean" yaml:"clean"`
	Message  githubv4.CommitMessage `json:"message" yaml:"message"`
	Trailers []string               `json:"trailers,omitempty" yaml:"trailers,omitempty"`
	Error    string                 `json:"error,omitempty" yaml:"error,omitempty"`
}

func (*DebugOutput) GetError added in v0.13.0

func (o *DebugOutput) GetError() error

func (*DebugOutput) SetError added in v0.13.0

func (o *DebugOutput) SetError(_ error)

type DeploymentOutput added in v0.18.0

type DeploymentOutput struct {
	DeploymentID int64  `json:"deployment_id" yaml:"deployment_id"`
	StatusID     int64  `json:"status_id" yaml:"status_id"`
	Environment  string `json:"environment" yaml:"environment"`
	Commitish    string `json:"commitish" yaml:"commitish"`
	SHA          string `json:"sha" yaml:"sha"`
	State        string `json:"state" yaml:"state"`
	URL          string `json:"url" yaml:"url"`
	Created      bool   `json:"created" yaml:"created"`
	Error        error  `json:"-" yaml:"-"`
	ErrorMessage string `json:"error,omitempty" yaml:"error,omitempty"`
}

func (*DeploymentOutput) GetError added in v0.18.0

func (o *DeploymentOutput) GetError() error

func (*DeploymentOutput) SetError added in v0.18.0

func (o *DeploymentOutput) SetError(err error)

type FlagConfig added in v0.13.0

type FlagConfig struct {
	Env []string
}

type FlagConfigMap added in v0.13.0

type FlagConfigMap map[string]FlagConfig

type OutputEncoder added in v0.13.0

type OutputEncoder interface {
	Encode(any) error
}

type ResolveOutput added in v0.13.0

type ResolveOutput struct {
	Repository   string   `json:"repository" yaml:"repository"`
	Commitish    string   `json:"commitish" yaml:"commitish"`
	SHA          string   `json:"sha,omitempty" yaml:"sha,omitempty"`
	Branches     []string `json:"branches,omitempty" yaml:"branches,omitempty"`
	Tags         []string `json:"tags,omitempty" yaml:"tags,omitempty"`
	Error        error    `json:"-" yaml:"-"`
	ErrorMessage string   `json:"error,omitempty" yaml:"error,omitempty"`
}

func (*ResolveOutput) GetError added in v0.13.0

func (o *ResolveOutput) GetError() error

func (*ResolveOutput) SetError added in v0.13.0

func (o *ResolveOutput) SetError(err error)

type TagOutput added in v0.13.0

type TagOutput struct {
	Tag          string `json:"tag" yaml:"tag"`
	Commitish    string `json:"commitish" yaml:"commitish"`
	SHA          string `json:"sha" yaml:"sha"`
	URL          string `json:"url" yaml:"url"`
	Updated      bool   `json:"updated" yaml:"updated"`
	Error        error  `json:"-" yaml:"-"`
	ErrorMessage string `json:"error,omitempty" yaml:"error,omitempty"`
}

func (*TagOutput) GetError added in v0.13.0

func (o *TagOutput) GetError() error

func (*TagOutput) SetError added in v0.13.0

func (o *TagOutput) SetError(err error)

type UpdateRefOutput added in v0.13.0

type UpdateRefOutput struct {
	Repository string      `json:"repository,omitempty" yaml:"repository,omitempty"`
	Source     source      `json:"source" yaml:"source"`
	Target     []targetRef `json:"target,omitempty" yaml:"target,omitempty"`
	Error      error       `json:"-" yaml:"-"`
}

func (*UpdateRefOutput) GetError added in v0.13.0

func (o *UpdateRefOutput) GetError() error

func (*UpdateRefOutput) SetError added in v0.13.0

func (o *UpdateRefOutput) SetError(err error)

Jump to

Keyboard shortcuts

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