cmd

package
v0.9.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateContainerFromTUI

func CreateContainerFromTUI(taskDescription, branchNameOverride string, skipConnect, exact bool) error

CreateContainerFromTUI creates a new container with the given parameters (called from TUI)

func Execute

func Execute()

Execute runs the root command

Types

type Config

type Config struct {
	Claude struct {
		ConfigPath  string `mapstructure:"config_path"`
		AuthPath    string `mapstructure:"auth_path"`
		DefaultMode string `mapstructure:"default_mode"`
	} `mapstructure:"claude"`

	Containers struct {
		Prefix    string `mapstructure:"prefix"`
		Image     string `mapstructure:"image"`
		Resources struct {
			Memory string `mapstructure:"memory"`
			CPUs   string `mapstructure:"cpus"`
		} `mapstructure:"resources"`
	} `mapstructure:"containers"`

	Tmux struct {
		DefaultSession string `mapstructure:"default_session"`
		Prefix         string `mapstructure:"prefix"`
	} `mapstructure:"tmux"`

	Firewall struct {
		AllowedDomains []string `mapstructure:"allowed_domains"`
	} `mapstructure:"firewall"`

	Sync struct {
		AdditionalFolders []string `mapstructure:"additional_folders"`
	} `mapstructure:"sync"`

	GitHub struct {
		Enabled    bool   `mapstructure:"enabled"`
		ConfigPath string `mapstructure:"config_path"`
	} `mapstructure:"github"`

	Daemon struct {
		CheckInterval string `mapstructure:"check_interval"`
		ShowNag       bool   `mapstructure:"show_nag"`
		TokenRefresh  struct {
			Enabled   bool   `mapstructure:"enabled"`
			Threshold string `mapstructure:"threshold"`
		} `mapstructure:"token_refresh"`
		Notifications struct {
			Enabled            bool     `mapstructure:"enabled"`
			AttentionThreshold string   `mapstructure:"attention_threshold"`
			NotifyOn           []string `mapstructure:"notify_on"`
			QuietHours         struct {
				Start string `mapstructure:"start"`
				End   string `mapstructure:"end"`
			} `mapstructure:"quiet_hours"`
		} `mapstructure:"notifications"`
	} `mapstructure:"daemon"`

	Apps map[string]string `mapstructure:"apps"` // name -> source path
}

Config represents the maestro configuration

Jump to

Keyboard shortcuts

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