Documentation ¶
Index ¶
- Constants
- Variables
- func AllSettings() map[string]interface{}
- func AppendRecentEntry(file string) error
- func CachedRegistryPath() string
- func ConfigFileUsed() string
- func Get(key string) string
- func GetEditorCommand() string
- func GetRecentEntries() []string
- func GetServerPort() string
- func GetUpdateChannel() string
- func GitAuthToken() string
- func IsSet(key string) bool
- func RegistryDir() string
- func RegistryUrl() string
- func RemoveRecentEntry(d string) error
- func Set(key string, value any)
- func SetVersion(version string)
- func TemplatesDir() string
- func WriteConfig() error
Constants ¶
View Source
const ( KeyServerPort = "server_port" KeyEditorCommand = "editor_command" KeyUpdateChannel = "update_channel" KeyRecent = "recent" KeyVersion = "version" KeyTemplatesDir = "templates_dir" KeyRegistryDir = "registry_dir" KeyRegistryUrl = "registry_url" KeyGitAuthToken = "git_auth_token" KeyCommit = "commit" KeyDate = "date" )
Variables ¶
View Source
var ( ConfigFile string ConfigDir string Verbose bool )
Functions ¶
func AllSettings ¶ added in v0.12.0
func AllSettings() map[string]interface{}
func AppendRecentEntry ¶
func CachedRegistryPath ¶ added in v0.12.0
func CachedRegistryPath() string
func ConfigFileUsed ¶ added in v0.12.0
func ConfigFileUsed() string
func GetEditorCommand ¶
func GetEditorCommand() string
func GetRecentEntries ¶
func GetRecentEntries() []string
func GetServerPort ¶
func GetServerPort() string
func GetUpdateChannel ¶
func GetUpdateChannel() string
func GitAuthToken ¶ added in v0.12.0
func GitAuthToken() string
func RegistryDir ¶ added in v0.12.0
func RegistryDir() string
func RegistryUrl ¶ added in v0.12.0
func RegistryUrl() string
func RemoveRecentEntry ¶
func SetVersion ¶ added in v0.12.0
func SetVersion(version string)
func TemplatesDir ¶ added in v0.12.0
func TemplatesDir() string
func WriteConfig ¶
func WriteConfig() error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.