Discover Packages
github.com/adrianosela/padl
cli
config
package
Version:
v0.0.0-...-3301e3d
Opens a new window with list of versions in this module.
Published: Jul 25, 2022
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 directory.
Using this function for both saving and reading config or resources (with
the same OS) guarantees that a directory will be found
SetConfig writes a configuration file to the given path
type Config struct {
HostURL string `json:"host_url"`
User string `json:"user,omitempty"`
Token string `json:"auth_token,omitempty"`
}
Config is the padl cli configuration
GetConfig returns the configuration at a given path
Source Files
¶
Click to show internal directories.
Click to hide internal directories.