Documentation ¶
Index ¶
- Variables
- type Config
- func (c *Config) AddGlobalStatus(store StatusStore)
- func (c *Config) AddProfile(profileInfo ProfileInfo)
- func (c *Config) AddStatus(store StatusStore)
- func (c *Config) DeleteProfile(profile string)
- func (c *Config) EditStatus(profile string, statusList []string)
- func (c *Config) GetProfileStatus() ([]string, error)
- func (c *Config) GetProfiles() []string
- func (c *Config) Load()
- func (c *Config) RenameProfile(profile string)
- func (c *Config) Save()
- func (c *Config) UpdateToken(profile string)
- type Profile
- type ProfileInfo
- type StatusStore
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigDirPath = filepath.Join(usr.HomeDir, ".slack-status-cli")
View Source
var ConfigFilePath = filepath.Join(ConfigDirPath, "config")
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Default ProfileInfo Globals []StatusStore Profiles map[string]Profile }
func (*Config) AddGlobalStatus ¶
func (c *Config) AddGlobalStatus(store StatusStore)
func (*Config) AddProfile ¶
func (c *Config) AddProfile(profileInfo ProfileInfo)
func (*Config) AddStatus ¶
func (c *Config) AddStatus(store StatusStore)
AddStatus adds status to the default profile
func (*Config) DeleteProfile ¶
func (*Config) EditStatus ¶
func (*Config) GetProfileStatus ¶
func (*Config) GetProfiles ¶
func (*Config) RenameProfile ¶
func (*Config) UpdateToken ¶
type Profile ¶
type Profile struct { Token string `mapstructure:"token"` StatusList map[string]StatusStore }
type ProfileInfo ¶
Click to show internal directories.
Click to hide internal directories.