Documentation ¶
Index ¶
- Variables
- func Argnames() []string
- func ConfigFilePath() (string, error)
- func Map() map[string]Switchable
- func Names() []string
- type Alacritty
- type AlacrittyConfigSlice
- type Config
- type Emacs
- type EmacsConfigSlice
- type Extension
- type ExtensionsSlice
- type GnomeShell
- type GnomeShellConfig
- type GnomeTerminal
- type GnomeTerminalConfig
- type Gtk3
- type Gtk3Config
- type Helix
- type HelixConfigSlice
- type Kitty
- type KittyConfigSlice
- type Konsole
- type KonsoleConfig
- type NeovimConfigSlice
- type Plasma
- type PlasmaConfig
- type Switchable
- type VimConfigSlice
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ConfigFilePath ¶
func Map ¶
func Map() map[string]Switchable
Types ¶
type Alacritty ¶ added in v0.16.0
type Alacritty struct{}
type AlacrittyConfigSlice ¶ added in v0.16.0
type AlacrittyConfigSlice struct {
Alacritty *alacrittyConfig `toml:"alacritty"`
}
type Config ¶
type EmacsConfigSlice ¶ added in v0.17.0
type EmacsConfigSlice struct {
Emacs *emacsConfig `toml:"emacs"`
}
type Extension ¶
type Extension struct {
// contains filtered or unexported fields
}
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) ValidateConfig ¶
type GnomeShellConfig ¶
type GnomeTerminal ¶
type GnomeTerminal struct{}
func (*GnomeTerminal) Argname ¶
func (gt *GnomeTerminal) Argname() string
func (*GnomeTerminal) Name ¶
func (gt *GnomeTerminal) Name() string
func (*GnomeTerminal) ValidateConfig ¶
type GnomeTerminalConfig ¶
type Gtk3Config ¶
type HelixConfigSlice ¶
type HelixConfigSlice struct {
Helix *helixConfig `toml:"helix"`
}
type KittyConfigSlice ¶
type KittyConfigSlice struct {
Kitty *kittyConfig `toml:"kitty"`
}
type KonsoleConfig ¶
type NeovimConfigSlice ¶
type NeovimConfigSlice struct {
Neovim *neovimConfig `toml:"nvim"`
}
type PlasmaConfig ¶
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"`
}
Click to show internal directories.
Click to hide internal directories.