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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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