config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Save

func Save(cfg *Config) error

Save saves the configuration to the default config file

Types

type Config

type Config struct {
	Theme          string    `yaml:"theme"`
	Remote         string    `yaml:"remote"`
	Modules        []string  `yaml:"modules"`
	SSH            SSHConfig `yaml:"ssh"`
	EnablePublicIP bool      `yaml:"enable_public_ip"`
	PluginDir      string    `yaml:"plugin_dir"`
}

func Load

func Load(configPath string) (*Config, error)

Load loads configuration from the specified path or default location

func NewDefault

func NewDefault() *Config

NewDefault creates a new default configuration

type SSHConfig

type SSHConfig struct {
	User           string `yaml:"user"`
	Port           int    `yaml:"port"`
	KeyPath        string `yaml:"key_path"`
	KnownHostsPath string `yaml:"known_hosts_path"`
}

Jump to

Keyboard shortcuts

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