package
0.1.1
Repository: https://github.com/glad-dev/gin.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

Append adds the token to the corresponding host in the configuration file.
List prints all stored remotes.
Load returns the config located at '~/.config/gin/config.toml' if it exists.
Remove removes the token/url combination at the passed indices.
Update updates the token/url and checks the token's validity.
UpdateColors sets the colors in the configuration to the provided values and writes the updated configuration back.
UpdateRemote loads the configuration file and updates the username and token name associated with each token.
VerifyTokens loads the configuration file and checks if every token is valid.

# Constants

No description provided by the author

# Variables

ErrConfigDoesNotExist is returned by Load if no configuration file exists.
ErrUpdateSameValues is returned if Update was called with the same url and token that is already stored in the configuration file.

# Structs

Colors contains hex strings of colors for the different styles.
Config contains the Colors configurations, a Version number and a list of Remotes.
Remote contains the remote's URL and a list of Details, containing the token, username and token name.