Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSecret ¶
Get a secret, returning nil if it doesn't exist
Note that the name is used as the filename of the secret file, so it must not contain special characters.
func MaybeMoveDeprecatedUserSettingsDir ¶
func MaybeMoveDeprecatedUserSettingsDir() error
func SetSecret ¶
SetSecret writes a secret to the local secrets directory.
Note that the name is used as the filename of the secret file, so it must not contain special characters.
func UserSettingsDir ¶
Types ¶
type UserSettings ¶
type UserSettings struct { FirstRun bool `json:"first_run"` // Set after first run AnalyticsEnabled bool `json:"analytics_enabled"` AnalyticsID string `json:"analytics_id"` }
UserSettings represents global user settings that span multiple projects
func LoadUserSettings ¶
func LoadUserSettings() (*UserSettings, error)
LoadUserSettings loads the global user settings from disk, returning default struct if no file exists
func (*UserSettings) Save ¶
func (s *UserSettings) Save() error
Save saves global user settings to disk
Click to show internal directories.
Click to hide internal directories.