Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ImportPaths []string `toml:"import"` DefaultSessionConfig DefaultSessionConfig `toml:"default_session"` SessionConfigs []SessionConfig `toml:"session"` }
func ParseConfigFile ¶
func ParseConfigFile(fetcher ConfigDirectoryFetcher) Config
TODO: add error handling (return error)
type ConfigDirectoryFetcher ¶ added in v1.0.0
type DefaultConfigDirectoryFetcher ¶ added in v1.0.0
type DefaultConfigDirectoryFetcher struct{}
func (*DefaultConfigDirectoryFetcher) GetUserConfigDir ¶ added in v1.0.0
func (d *DefaultConfigDirectoryFetcher) GetUserConfigDir() (string, error)
type DefaultSessionConfig ¶ added in v1.0.0
type SessionConfig ¶ added in v1.0.0
type SessionConfig struct { Name string `toml:"name"` Path string `toml:"path"` DefaultSessionConfig }
Click to show internal directories.
Click to hide internal directories.