aliases

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aliases

type Aliases map[string]string

Aliases represents the aliases configuration

func Load

func Load() (*Aliases, error)

Load loads aliases from the configuration file

func (*Aliases) Delete

func (s *Aliases) Delete(name string) bool

Delete removes an alias

func (*Aliases) Get

func (s *Aliases) Get(name string) (string, bool)

Get retrieves the agent path for an alias

func (*Aliases) List

func (s *Aliases) List() map[string]string

List returns all aliases

func (*Aliases) Save

func (s *Aliases) Save() error

Save saves aliases to the configuration file

func (*Aliases) Set

func (s *Aliases) Set(name, agentPath string)

Set creates or updates an alias

Jump to

Keyboard shortcuts

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