cliutil

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureStateLayout

func EnsureStateLayout(paths *StatePaths) error

func ListDirectories

func ListDirectories(root string) ([]string, error)

func PrintRuntimePaths

func PrintRuntimePaths(meta *Metadata)

func WriteMetadata

func WriteMetadata(meta *Metadata, path string) error

Types

type Metadata

type Metadata struct {
	Instance         string    `json:"instance"`
	BridgeType       string    `json:"bridge_type"`
	RepoPath         string    `json:"repo_path,omitempty"`
	BinaryPath       string    `json:"binary_path,omitempty"`
	ConfigPath       string    `json:"config_path"`
	RegistrationPath string    `json:"registration_path"`
	LogPath          string    `json:"log_path"`
	PIDPath          string    `json:"pid_path"`
	BeeperBridgeName string    `json:"beeper_bridge_name"`
	UpdatedAt        time.Time `json:"updated_at"`
}

func ReadMetadata

func ReadMetadata(path string) (*Metadata, error)

type StatePaths

type StatePaths struct {
	Root             string
	ConfigPath       string
	RegistrationPath string
	LogPath          string
	PIDPath          string
	MetaPath         string
}

func BuildStatePaths

func BuildStatePaths(root, instanceName string) *StatePaths

Jump to

Keyboard shortcuts

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