cmd

package
v0.8.15 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

Version is set at build time via ldflags: -X github.com/sofq/jira-cli/cmd.Version=<ver>

Functions

func Execute

func Execute() int

Execute runs the root command and returns an exit code.

func HandWrittenSchemaOps added in v0.8.2

func HandWrittenSchemaOps() []generated.SchemaOp

HandWrittenSchemaOps returns schema operations for hand-written commands (workflow transition, workflow assign) so they appear in schema discovery and batch operations.

Types

type BatchOp

type BatchOp struct {
	Command string            `json:"command"`
	Args    map[string]string `json:"args"`
	JQ      string            `json:"jq,omitempty"`
}

BatchOp represents a single operation in a batch request.

type BatchResult

type BatchResult struct {
	Index    int             `json:"index"`
	ExitCode int             `json:"exit_code"`
	Data     json.RawMessage `json:"data,omitempty"`
	Error    json.RawMessage `json:"error,omitempty"`
}

BatchResult holds the result of a single batch operation.

Directories

Path Synopsis
Code generated by jr gen.
Code generated by jr gen.

Jump to

Keyboard shortcuts

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