issuecmd

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package issuecmd provides the "issue" parent command, which groups issue management operations under a single namespace. Core workflow commands (list, close) live at root; this package holds issue-specific operations that are not part of the core create-claim-work-close loop.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Defer

func Defer(ctx context.Context, input DeferInput) error

Defer shelves a claimed issue for later. The label mutation and state transition are delegated to a single atomic service call so the CLI adapter does not orchestrate ordering invariants.

func NewCmd

func NewCmd(f *cmdutil.Factory) *cli.Command

NewCmd constructs the "issue" parent command with all issue management subcommands. Core workflow commands (list, close) are only available at root; search and other issue-specific operations live here.

func Release

func Release(ctx context.Context, input ReleaseInput) error

Release returns a claimed issue to its default unclaimed state without closing it, making the issue available for other agents to claim.

func Reopen

func Reopen(ctx context.Context, input ReopenInput) error

Reopen transitions a closed or deferred issue back to the open state. The service handles validation, claim lifecycle, and history recording atomically.

Types

type DeferInput

type DeferInput struct {
	Service driving.Service
	IssueID string
	ClaimID string
	Until   string
	JSON    bool
	WriteTo io.Writer
}

DeferInput holds the parameters for the defer operation, decoupled from CLI flag parsing so it can be tested directly.

type ReleaseInput

type ReleaseInput struct {
	Service driving.Service
	IssueID string
	ClaimID string
	JSON    bool
	WriteTo io.Writer
}

ReleaseInput holds the parameters for the release operation, decoupled from CLI flag parsing so it can be tested directly.

type ReopenInput

type ReopenInput struct {
	Service driving.Service
	IssueID string
	Author  string
	JSON    bool
	WriteTo io.Writer
}

ReopenInput holds the parameters for the reopen operation, decoupled from CLI flag parsing so it can be tested directly.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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