Documentation ¶
Index ¶
Constants ¶
View Source
const ( OutputTypeJSON = "json" OutputTypeText = "text" )
Variables ¶
View Source
var (
ErrInvalidInput = errors.New("no valid input")
)
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Input ¶ added in v1.3.0
type ListFlags ¶
func (ListFlags) FlagsPresent ¶
type Output ¶
func (Output) FormatValid ¶
type SlackCreds ¶
type SlackCreds struct { // Token is the Slack auth-token value. Token string // Cookie may contain cookie value or a filename. I have mixed feelings // about this, but blame cURL, they use the same approach for --cookie, and // I have no imagination. Also, it's simpler from the usability POV, as // there's no additional parameter. Well, I'll repeat this to myself until // I start to believe in it. Cookie string }
SlackCreds stores Slack credentials.
func (*SlackCreds) Validate ¶ added in v1.3.5
func (c *SlackCreds) Validate() error
Click to show internal directories.
Click to hide internal directories.