apps

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: BSD-3-Clause Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Argnames

func Argnames() []string

func ConfigFilePath

func ConfigFilePath() (string, error)

func Map

func Map() map[string]Switchable

func Names

func Names() []string

Types

type Alacritty added in v0.16.0

type Alacritty struct{}

func (*Alacritty) Argname added in v0.16.0

func (a *Alacritty) Argname() string

func (*Alacritty) Name added in v0.16.0

func (a *Alacritty) Name() string

func (*Alacritty) Switch added in v0.16.0

func (a *Alacritty) Switch(ctx context.Context, mode operation.Operation, config *Config) error

func (*Alacritty) ValidateConfig added in v0.16.0

func (a *Alacritty) ValidateConfig(ctx context.Context, config *Config) (health.Status, error)

type AlacrittyConfigSlice added in v0.16.0

type AlacrittyConfigSlice struct {
	Alacritty *alacrittyConfig `toml:"alacritty"`
}

type Emacs added in v0.17.0

type Emacs struct{}

func (*Emacs) Argname added in v0.17.0

func (e *Emacs) Argname() string

func (*Emacs) Name added in v0.17.0

func (*Emacs) Name() string

func (*Emacs) Switch added in v0.17.0

func (*Emacs) Switch(ctx context.Context, mode operation.Operation, config *Config) error

func (*Emacs) ValidateConfig added in v0.17.0

func (*Emacs) ValidateConfig(ctx context.Context, config *Config) (health.Status, error)

type EmacsConfigSlice added in v0.17.0

type EmacsConfigSlice struct {
	Emacs *emacsConfig `toml:"emacs"`
}

type Extension

type Extension struct {
	// contains filtered or unexported fields
}

func (*Extension) Argname

func (x *Extension) Argname() string

func (*Extension) Name

func (x *Extension) Name() string

func (*Extension) Switch

func (x *Extension) Switch(ctx context.Context, mode operation.Operation, config *Config) error

func (*Extension) ValidateConfig

func (x *Extension) ValidateConfig(ctx context.Context, config *Config) (health.Status, error)

type ExtensionsSlice

type ExtensionsSlice struct {
	Extensions map[string]*extensionConfig `toml:"x"`
}

type GnomeShell

type GnomeShell struct{}

func (*GnomeShell) Argname

func (gt *GnomeShell) Argname() string

func (*GnomeShell) Name

func (gt *GnomeShell) Name() string

func (*GnomeShell) Switch

func (g *GnomeShell) Switch(ctx context.Context, mode operation.Operation, config *Config) error

func (*GnomeShell) ValidateConfig

func (g *GnomeShell) ValidateConfig(ctx context.Context, config *Config) (health.Status, error)

type GnomeShellConfig

type GnomeShellConfig struct {
	GnomeShell *struct {
		Disabled bool   `toml:"disabled"`
		Dark     string `toml:"dark" validate:"required_with=Light"`
		Light    string `toml:"light" validate:"required_with=Dark"`
	} `toml:"gnome-shell"`
}

type GnomeTerminal

type GnomeTerminal struct{}

func (*GnomeTerminal) Argname

func (gt *GnomeTerminal) Argname() string

func (*GnomeTerminal) Name

func (gt *GnomeTerminal) Name() string

func (*GnomeTerminal) Switch

func (gt *GnomeTerminal) Switch(ctx context.Context, mode operation.Operation, config *Config) error

func (*GnomeTerminal) ValidateConfig

func (gt *GnomeTerminal) ValidateConfig(ctx context.Context, config *Config) (health.Status, error)

type GnomeTerminalConfig

type GnomeTerminalConfig struct {
	GnomeTerminal *struct {
		Disabled bool      `toml:"disabled"`
		Dark     uuid.UUID `toml:"dark" validate:"required_with=Light"`
		Light    uuid.UUID `toml:"light" validate:"required_with=Dark"`
	} `toml:"gnome-terminal"`
}

type Gtk3

type Gtk3 struct{}

func (*Gtk3) Argname

func (gt *Gtk3) Argname() string

func (*Gtk3) Name

func (gt *Gtk3) Name() string

func (*Gtk3) Switch

func (g *Gtk3) Switch(ctx context.Context, mode operation.Operation, config *Config) error

func (*Gtk3) ValidateConfig

func (g *Gtk3) ValidateConfig(ctx context.Context, config *Config) (health.Status, error)

type Gtk3Config

type Gtk3Config struct {
	Gtk3 *struct {
		Disabled bool   `toml:"disabled"`
		Dark     string `toml:"dark" validate:"required_with=Light"`
		Light    string `toml:"light" validate:"required_with=Dark"`
	} `toml:"gtk3"`
}

type Helix

type Helix struct{}

func (*Helix) Argname

func (h *Helix) Argname() string

func (*Helix) Name

func (h *Helix) Name() string

func (*Helix) Switch

func (h *Helix) Switch(ctx context.Context, mode operation.Operation, config *Config) error

func (*Helix) ValidateConfig

func (h *Helix) ValidateConfig(ctx context.Context, config *Config) (health.Status, error)

type HelixConfigSlice

type HelixConfigSlice struct {
	Helix *helixConfig `toml:"helix"`
}

type Kitty

type Kitty struct{}

func (*Kitty) Argname

func (k *Kitty) Argname() string

func (*Kitty) Name

func (k *Kitty) Name() string

func (*Kitty) Switch

func (k *Kitty) Switch(ctx context.Context, mode operation.Operation, config *Config) error

func (*Kitty) ValidateConfig

func (k *Kitty) ValidateConfig(ctx context.Context, config *Config) (health.Status, error)

type KittyConfigSlice

type KittyConfigSlice struct {
	Kitty *kittyConfig `toml:"kitty"`
}

type Konsole

type Konsole struct{}

func (*Konsole) Argname

func (k *Konsole) Argname() string

func (*Konsole) Name

func (k *Konsole) Name() string

func (*Konsole) Switch

func (k *Konsole) Switch(ctx context.Context, mode operation.Operation, config *Config) error

func (*Konsole) ValidateConfig

func (k *Konsole) ValidateConfig(ctx context.Context, config *Config) (health.Status, error)

type KonsoleConfig

type KonsoleConfig struct {
	Konsole *struct {
		Disabled bool   `toml:"disabled"`
		Dark     string `toml:"dark" validate:"required_with=Light"`
		Light    string `toml:"light" validate:"required_with=Dark"`
	} `toml:"konsole"`
}

type NeovimConfigSlice

type NeovimConfigSlice struct {
	Neovim *neovimConfig `toml:"nvim"`
}

type Plasma

type Plasma struct{}

func (*Plasma) Argname

func (p *Plasma) Argname() string

func (*Plasma) Name

func (p *Plasma) Name() string

func (*Plasma) Switch

func (p *Plasma) Switch(ctx context.Context, mode operation.Operation, config *Config) error

func (*Plasma) ValidateConfig

func (p *Plasma) ValidateConfig(ctx context.Context, config *Config) (health.Status, error)

type PlasmaConfig

type PlasmaConfig struct {
	Plasma *struct {
		Disabled bool   `toml:"disabled"`
		Dark     string `toml:"dark" validate:"required_with=Light"`
		Light    string `toml:"light" validate:"required_with=Dark"`
	} `toml:"plasma"`
}

type Switchable

type Switchable interface {
	Argname() string
	Name() string
	Switch(ctx context.Context, mode operation.Operation, config *Config) error
	ValidateConfig(ctx context.Context, config *Config) (health.Status, error)
}

func MakeExtensions

func MakeExtensions(ctx context.Context, config *Config) []Switchable

func NewNeovim

func NewNeovim() Switchable

func NewVim

func NewVim() Switchable

type VimConfigSlice

type VimConfigSlice struct {
	Vim *vimConfig `toml:"vim"`
}

Jump to

Keyboard shortcuts

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