commands

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Attach

func Attach(args []string) error

func Blocks

func Blocks(args []string) error

func Close

func Close(args []string) error

func Comment

func Comment(args []string) error

func Create

func Create(args []string) error

func Duplicate

func Duplicate(args []string) error

func ForCommit

func ForCommit(args []string) error
func Link(args []string) error

func List

func List(args []string) error

func Pull

func Pull(args []string) error

func Push

func Push(args []string) error

func Relate

func Relate(args []string) error

func Show

func Show(args []string) error

Types

type GitRepo

type GitRepo struct{}

GitRepo provides git operations

func (*GitRepo) CreateIssueRef

func (r *GitRepo) CreateIssueRef(id int64, metaContent, descContent string) error

CreateIssueRef creates a new issue ref with initial tree

func (*GitRepo) GetNextIssueID

func (r *GitRepo) GetNextIssueID() (int64, error)

GetNextIssueID reads and increments the issue counter

func (*GitRepo) ListIssueRefs

func (r *GitRepo) ListIssueRefs(includeAll bool) ([]string, error)

ListIssueRefs lists all issue refs (open and optionally closed)

func (*GitRepo) ReadIssue

func (r *GitRepo) ReadIssue(ref string) (*Issue, string, error)

ReadIssue reads an issue's current state

func (*GitRepo) UpdateIssueCommit

func (r *GitRepo) UpdateIssueCommit(id int64, message string, updates map[string]string) error

UpdateIssueCommit adds a new commit to an issue chain

func (*GitRepo) UpdateIssueCommitByRef

func (r *GitRepo) UpdateIssueCommitByRef(ref, message string, updates map[string]string) error

UpdateIssueCommitByRef adds a new commit to an issue chain using a ref

type Issue

type Issue struct {
	ID            int64
	Status        string // "open" or "closed"
	Created       time.Time
	Updated       time.Time
	Commits       []string
	Branches      []string
	ClosedBy      *string
	Title         string // From description.md first line
	RelatedIssues []string
	Blocks        []string
	BlockedBy     []string
	Duplicates    []string
}

Issue represents an issue's metadata

func NodeToMeta

func NodeToMeta(node *ir.Node) (*Issue, error)

NodeToMeta converts ir.Node (tony format) to Issue metadata

func (*Issue) MetaToNode

func (i *Issue) MetaToNode() *ir.Node

MetaToNode converts Issue metadata to ir.Node (tony format)

Jump to

Keyboard shortcuts

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