Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefaultConfigDir ¶
GetDefaultConfigDir returns the default config directory
Types ¶
type Config ¶
type Config struct {
General GeneralConfig
Gist GistConfig
GitLab GitLabConfig
}
Config is a struct of config
var Conf Config
Conf is global config variable
type FlagConfig ¶
type FlagConfig struct {
Debug bool
Query string
Delimiter string
OneLine bool
Color bool
Tag bool
}
FlagConfig is a struct of flag
var Flag FlagConfig
Flag is global flag variable
type GeneralConfig ¶
type GeneralConfig struct {
SnippetFile string `toml:"snippetfile"`
Editor string `toml:"editor"`
Column int `toml:"column"`
SelectCmd string `toml:"selectcmd"`
Backend string `toml:"backend"`
}
GeneralConfig is a struct of general config
type GistConfig ¶
type GistConfig struct {
FileName string `toml:"file_name"`
AccessToken string `toml:"access_token"`
GistID string `toml:"gist_id"`
Public bool `toml:"public"`
AutoSync bool `toml:"auto_sync"`
}
GistConfig is a struct of config for Gist
type GitLabConfig ¶ added in v0.3.1
type GitLabConfig struct {
FileName string `toml:"file_name"`
AccessToken string `toml:"access_token"`
Url string `toml:"url"`
ID string `toml:"id"`
Visibility string `toml:"visibility"`
AutoSync bool `toml:"auto_sync"`
}
GitLabConfig is a struct of config for GitLabSnippet
Click to show internal directories.
Click to hide internal directories.