cli

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ScopeWorkItems = "workitems"
	ScopeRepos     = "repos"
	ScopePRs       = "prs"
)

Variables

This section is empty.

Functions

func Execute

func Execute()

func SetVersion added in v0.1.3

func SetVersion(version string)

Types

type Capabilities

type Capabilities struct {
	Version    string                 `json:"version"`
	Commands   map[string]CommandInfo `json:"commands"`
	GlobalOpts GlobalOpts             `json:"globalOptions"`
}

func GetCapabilities

func GetCapabilities() Capabilities

type CommandInfo

type CommandInfo struct {
	Use         string   `json:"use"`
	Short       string   `json:"short"`
	Subcommands []string `json:"subcommands,omitempty"`
	Examples    []string `json:"examples,omitempty"`
}

type GlobalOpts

type GlobalOpts struct {
	Profile string   `json:"profile"`
	Format  []string `json:"format"`
}

type OutputFormat

type OutputFormat string
const (
	FormatTable    OutputFormat = "table"
	FormatJSON     OutputFormat = "json"
	FormatYAML     OutputFormat = "yaml"
	FormatMarkdown OutputFormat = "markdown"
)

func (*OutputFormat) Set

func (f *OutputFormat) Set(value string) error

func (*OutputFormat) String

func (f *OutputFormat) String() string

func (*OutputFormat) Type

func (f *OutputFormat) Type() string

Jump to

Keyboard shortcuts

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