Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Path ¶
Path returns a path to a config file by checking the following list of options. The first path that points to an existing file is used.
- localias --config <path> ...
- LOCALIAS_CONFIGFILE=<path> localias ...
- .localias.yaml in current directory
- .localias.yaml in repository root and command is run from inside a repository
- $XDG_CONFIG_HOME/localias.yaml (or OS fallback if XDG_CONFIG_HOME is not set)
Types ¶
type Config ¶
func (Config) CaddyStatePath ¶
func (*Config) Remove ¶
Remove removes all entries from the config that match any of the specified aliases.
func (*Config) Set ¶
Set will add or update the existing list of entries. If there is already a entry with the same upstream/alias, its downstream/port will be updated. If there is not already a entry with the same upstream/alias, the new entry will be added to the list.
Returns `true` if an existing entry was updated, `false` if the entry was added.
Click to show internal directories.
Click to hide internal directories.