cli

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version is set at build time
	Version = "dev"
	// Commit is set at build time
	Commit = "unknown"
	// JSONOutput is set when --json flag is used
	JSONOutput bool
)

Functions

func Execute

func Execute()

Execute runs the root command

Types

type BackupCreateOutput added in v0.3.0

type BackupCreateOutput struct {
	Tool       string `json:"tool"`
	ConfigPath string `json:"configPath"`
	BackupPath string `json:"backupPath"`
}

BackupCreateOutput represents the JSON output for backup create

type BackupInfo added in v0.3.0

type BackupInfo struct {
	Tool       string    `json:"tool"`
	ConfigPath string    `json:"configPath"`
	BackupPath string    `json:"backupPath"`
	Timestamp  time.Time `json:"timestamp,omitempty"`
	Size       int64     `json:"size"`
}

BackupInfo represents information about a single backup

type BackupListOutput added in v0.3.0

type BackupListOutput struct {
	Backups []BackupInfo `json:"backups"`
	Total   int          `json:"total"`
}

BackupListOutput represents the JSON output for backup list

func (BackupListOutput) MarshalJSON added in v0.3.0

func (o BackupListOutput) MarshalJSON() ([]byte, error)

MarshalJSON for BackupListOutput to handle empty slices

type BackupRestoreOutput added in v0.3.0

type BackupRestoreOutput struct {
	Tool         string `json:"tool"`
	ConfigPath   string `json:"configPath"`
	RestoredFrom string `json:"restoredFrom"`
}

BackupRestoreOutput represents the JSON output for backup restore

type ValidationResult

type ValidationResult struct {
	Tool        string
	ConfigPath  string
	Valid       bool
	Errors      []string
	Warnings    []string
	ServerCount int
}

ValidationResult represents the result of validating a single tool's config

Jump to

Keyboard shortcuts

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