Documentation
¶
Index ¶
- func ExitCode(err error) int
- func WrapExit(code int, err error) error
- type Context
- func (c *Context) ClearCache() error
- func (c *Context) CommandContext() context.Context
- func (c *Context) EnsureTimeout() time.Duration
- func (c *Context) ResolveCachePath() string
- func (c *Context) ResolveCookiePath() string
- func (c *Context) SaveProfile(profile config.Profile) error
- func (c *Context) SetCommandContext(ctx context.Context)
- func (c *Context) SetSpotify(client spotify.API)
- func (c *Context) Spotify() (spotify.API, error)
- func (c *Context) ValidateProfile() error
- type ExitError
- type Settings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
type Context struct {
Settings Settings
Config *config.Config
ConfigPath string
Profile config.Profile
ProfileKey string
Output *output.Writer
// contains filtered or unexported fields
}
func NewContext ¶
func (*Context) ClearCache ¶ added in v0.9.0
func (*Context) CommandContext ¶ added in v0.3.0
func (*Context) EnsureTimeout ¶
func (*Context) ResolveCachePath ¶ added in v0.9.0
func (*Context) ResolveCookiePath ¶
func (*Context) SetCommandContext ¶ added in v0.3.0
func (*Context) SetSpotify ¶
func (*Context) ValidateProfile ¶
Click to show internal directories.
Click to hide internal directories.