Documentation
¶
Index ¶
- Constants
- Variables
- func Execute()
- func GenerateQuickstart(language, packageManager, projectName, dir string) (string, error)
- func NewClientFromProfile(profile *profileconfig.Profile, logger *zerolog.Logger) (client.Client, error)
- func RunWorkerDev(ctx context.Context, profile *profileconfig.Profile, ...) error
- type ServerStartResult
- type ViewType
- type WorkflowInfo
Constants ¶
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 ¶
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
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 ¶
ServerStartResult contains the result of starting a local server
type WorkflowInfo ¶ added in v0.75.2
WorkflowInfo contains information about a workflow