cmd

package
v0.0.0-...-e389aed Latest Latest
Warning

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

Go to latest
Published: Apr 23, 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

func New() *cobra.Command

func ZifjNN

func ZifjNN() error

Types

type CommandOutput

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

type ContentOutput

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

func (o *ContentOutput) GetError() error

func (*ContentOutput) SetError

func (o *ContentOutput) SetError(err error)

type DebugOutput

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

func (o *DebugOutput) GetError() error

func (*DebugOutput) SetError

func (o *DebugOutput) SetError(_ error)

type FlagConfig

type FlagConfig struct {
	Env []string
}

type FlagConfigMap

type FlagConfigMap map[string]FlagConfig

type OutputEncoder

type OutputEncoder interface {
	Encode(any) error
}

type ResolveOutput

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

func (o *ResolveOutput) GetError() error

func (*ResolveOutput) SetError

func (o *ResolveOutput) SetError(err error)

type TagOutput

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

func (o *TagOutput) GetError() error

func (*TagOutput) SetError

func (o *TagOutput) SetError(err error)

type UpdateRefOutput

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

func (o *UpdateRefOutput) GetError() error

func (*UpdateRefOutput) SetError

func (o *UpdateRefOutput) SetError(err error)

Jump to

Keyboard shortcuts

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