cli

package
v0.75.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// ReservedTriggerManual is the reserved keyword for manual workflow triggering
	ReservedTriggerManual = "manual"

	// ManualTriggerDescription is the description shown in the trigger selector
	ManualTriggerDescription = "Manually trigger a workflow via API"
)

Variables

View Source
var Version = "v0.1.0-alpha.0"

Version will be linked by an ldflag during build

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func GenerateQuickstart added in v0.75.2

func GenerateQuickstart(language, packageManager, projectName, dir string) (string, error)

GenerateQuickstart generates a quickstart project without interactive forms. Returns the post-quickstart content that should be displayed to the user.

func NewClientFromProfile added in v0.75.2

func NewClientFromProfile(profile *profileconfig.Profile, logger *zerolog.Logger) (client.Client, error)

NewClientFromProfile creates a new Hatchet client from a profile configuration. It properly handles TLS settings, host/port, and authentication based on the profile.

func RunWorkerDev added in v0.75.2

func RunWorkerDev(ctx context.Context, profile *profileconfig.Profile, devConfig *worker.WorkerDevConfig, preCmdsCompleteChan chan<- struct{}) error

RunWorkerDev runs the worker in dev mode with the given profile and config. This function can be called directly from tests without interactive forms. If preCmdsCompleteChan is provided, it will be signaled when pre-commands complete.

Types

type ServerStartResult

type ServerStartResult struct {
	ProfileName   string
	Token         string
	DashboardPort int
	GrpcPort      int
}

ServerStartResult contains the result of starting a local server

type ViewType

type ViewType int

ViewType represents the type of primary view

const (
	ViewTypeRuns ViewType = iota
	ViewTypeWorkflows
	ViewTypeWorkers
)

type WorkflowInfo added in v0.75.2

type WorkflowInfo struct {
	ID      string
	Name    string
	Version string
}

WorkflowInfo contains information about a workflow

Directories

Path Synopsis
internal
pm
tui
dag

Jump to

Keyboard shortcuts

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