yeet

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2026 License: BSD-3-Clause Imports: 44 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleInit

func HandleInit(_ context.Context, args []string) error

func HandleListHosts

func HandleListHosts(ctx context.Context, tags []string) error

func HandleMountSys

func HandleMountSys(ctx context.Context, rawArgs []string) error

func HandlePrefs

func HandlePrefs(_ context.Context, args []string) error

func HandlePush

func HandlePush(ctx context.Context, args []string) error

func HandleSSH

func HandleSSH(ctx context.Context, args []string) error

func HandleSkirt

func HandleSkirt(ctx context.Context, _ []string) error

func HandleSvcCmd

func HandleSvcCmd(args []string) error

func HandleTailscale

func HandleTailscale(ctx context.Context, args []string) error

func Host

func Host() string

func HostOverride

func HostOverride() (string, bool)

func ParseProgressMode

func ParseProgressMode(raw string) (catchrpc.ProgressMode, error)

func PrintCLIError

func PrintCLIError(w io.Writer, err error)

func ResetUIConfig

func ResetUIConfig()

func SetHost

func SetHost(host string)

func SetHostOverride

func SetHostOverride(host string)

func SetServiceOverride

func SetServiceOverride(service string)

func SetUIConfig

func SetUIConfig(cfg UIConfig)

Types

type ProjectConfig

type ProjectConfig struct {
	Version  int            `toml:"version,omitempty"`
	Hosts    []string       `toml:"hosts,omitempty"`
	Services []ServiceEntry `toml:"services,omitempty"`
}

func (*ProjectConfig) AllHosts

func (c *ProjectConfig) AllHosts() []string

func (*ProjectConfig) RemoveServiceEntry

func (c *ProjectConfig) RemoveServiceEntry(service, host string) bool

func (*ProjectConfig) ServiceEntry

func (c *ProjectConfig) ServiceEntry(service, host string) (ServiceEntry, bool)

func (*ProjectConfig) ServiceHosts

func (c *ProjectConfig) ServiceHosts(service string) []string

func (*ProjectConfig) SetServiceEntry

func (c *ProjectConfig) SetServiceEntry(entry ServiceEntry)

type ServiceEntry

type ServiceEntry struct {
	Name     string   `toml:"name"`
	Host     string   `toml:"host"`
	Type     string   `toml:"type,omitempty"`
	Payload  string   `toml:"payload,omitempty"`
	EnvFile  string   `toml:"env_file,omitempty"`
	Schedule string   `toml:"schedule,omitempty"`
	Args     []string `toml:"args,omitempty"`
}

type UIConfig

type UIConfig struct {
	TTYOverride *bool
	Progress    catchrpc.ProgressMode
}

func CurrentUIConfig

func CurrentUIConfig() UIConfig

Jump to

Keyboard shortcuts

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