cmd

package
v0.1.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2026 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const ControlPlaneTabName = control.TabName

ControlPlaneTabName is the name of the control plane tab in zellij Deprecated: Use control.TabName instead

Variables

This section is empty.

Functions

func Execute

func Execute() error

func GetContext

func GetContext() context.Context

GetContext returns the root context that is cancelled on SIGINT/SIGTERM. This should be used by all subcommands instead of context.Background().

func SetVersionInfo

func SetVersionInfo(v, c, d string)

SetVersionInfo sets the version information from main.go. This is called before Execute() to set the version injected by ldflags.

Types

type CreatePRTaskResult

type CreatePRTaskResult struct {
	TaskID string
	// PRExists is true if a PR already exists for this work
	PRExists bool
	PRURL    string
}

CreatePRTaskResult contains the result of creating a PR task.

func CreatePRTask

func CreatePRTask(ctx context.Context, proj *project.Project, workID string) (*CreatePRTaskResult, error)

CreatePRTask creates a PR task for a work unit. The work must be completed before a PR task can be created. Returns an error if the work is not completed, or PRExists=true if a PR already exists.

type CreateReviewTaskResult

type CreateReviewTaskResult struct {
	TaskID string
}

CreateReviewTaskResult contains the result of creating a review task.

func CreateReviewTask

func CreateReviewTask(ctx context.Context, proj *project.Project, workID string) (*CreateReviewTaskResult, error)

CreateReviewTask creates a review task for a work unit. Review tasks examine code changes for quality and security issues. Returns the task ID of the created review task.

Jump to

Keyboard shortcuts

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