config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLocalClient

func NewLocalClient() (*client.Client, error)

func NewRemoteClient

func NewRemoteClient(host string) (*client.Client, error)

func NewSSHClient

func NewSSHClient(host string) (*client.Client, error)

Types

type Cli

type Cli struct {
	Hosts   []HostConfig `help:"List of hosts to connect to." name:"hosts" aliases:"host" default:"local" env:"DTOP_HOSTS"`
	Version bool         `help:"Show version information." default:"false" name:"version" short:"v"`
	Sort    SortField    `help:"Default sort order. Options are status or name." name:"sort" enum:"name,status" default:"status"`
}

type HostConfig

type HostConfig struct {
	Host   string `help:"Host address." name:"host"`
	Dozzle string `help:"Dozzle address." name:"dozzle"`
}

func (*HostConfig) Decode

func (h *HostConfig) Decode(ctx *kong.DecodeContext) error

type SortField added in v0.0.37

type SortField string
const (
	SortByStatus SortField = "status"
	SortByName             = "name"
)

Jump to

Keyboard shortcuts

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