Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefaultConfigDir ¶
GetDefaultConfigDir returns the default config directory *in absolute format*.
Types ¶
type Config ¶
type Config struct { General GeneralConfig Gist GistConfig GitLab GitLabConfig GHEGist GHEGistConfig }
Config is a struct of config
var Conf Config
Conf is global config variable
type FlagConfig ¶
type FlagConfig struct { Debug bool Query string FilterTag string Command bool Delimiter string OneLine bool Color bool Tag bool UseMultiLine bool UseEditor bool }
FlagConfig is a struct of flag
var Flag FlagConfig
Flag is global flag variable
type GHEGistConfig ¶ added in v0.8.1
type GHEGistConfig struct { BaseUrl string `toml:"base_url"` UploadUrl string `toml:"upload_url"` FileName string `toml:"file_name"` AccessToken string `toml:"access_token"` GistID string `toml:"gist_id"` Public bool AutoSync bool `toml:"auto_sync"` }
GHEGistConfig is a struct of config for Gist of Github Enterprise
type GeneralConfig ¶
type GeneralConfig struct { SnippetFile string SnippetDirs []string Editor string Column int SelectCmd string Backend string SortBy string Color bool Format string Cmd []string }
GeneralConfig is a struct of general config
Click to show internal directories.
Click to hide internal directories.