Discover Packages
github.com/adrianosela/cliprepd
config
package
Version:
v0.0.0-...-dace297
Opens a new window with list of versions in this module.
Published: Jul 18, 2019
License: MPL-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
GetDefaultPath returns the best place to save / look-for a config file.
Using this function for both saving and reading the config file (with the
same OS) guarantees that a file will be found
SetConfig writes a configuration file to the given path
type Config struct {
HostURL string `json:"host_url"`
AuthTK string `json:"auth_token"`
}
Config is the iprepd cli configuration
GetConfig returns the configuration at a given path
Source Files
¶
Click to show internal directories.
Click to hide internal directories.