Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MultiError ¶
MultiError will convert a slice of errors into a single error
func NewLogWriter ¶
NewLogWriter will return an io.Writer that writes to stdout. If debug is false, messages that begin with [DEBUG] will not be written
func ParseShell ¶
ParseShell takes a string input and parses it into a []string of arguments. Anything wrapped in quotation marks will be treated as a single argument. If there is an odd number of quotation marks, an error will be returned.
Types ¶
type SlackClient ¶
type SlackClient interface { DeleteMessage(channel, messageTimestamp string) (string, string, error) GetGroupHistory(group string, params slack.HistoryParameters) (*slack.History, error) GetChannelHistory(channelID string, params slack.HistoryParameters) (*slack.History, error) GetIMHistory(channel string, params slack.HistoryParameters) (*slack.History, error) SendMessage(channel string, options ...slack.MsgOption) (string, string, string, error) }
SlackClient is used to mock the nlopes/slack client
Click to show internal directories.
Click to hide internal directories.