Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultDir ¶
DefaultDir returns the default directory for cses-cli configuration files.
func SaveToDefault ¶
func SaveToDefault(c *Configuration) error
SaveToDefault saves c to the default location.
Types ¶
type Configuration ¶
type Configuration struct { SessionToken string `yaml:"sessionToken"` Username string `yaml:"username"` }
Configuration is the configuration file for the CLI.
func LoadFromDefault ¶
func LoadFromDefault() (*Configuration, error)
LoadFromDefault loads the configuration from the default location.
func (*Configuration) Save ¶
func (c *Configuration) Save(path string) error
Save saves the configuration to path.
Click to show internal directories.
Click to hide internal directories.