First pass on the client

type Client interface {

GetAuthFields() map[string]bool

GetName() string

FormatField(fieldName string, value string) string

}

The first pass exposed something interesting. Some clients might need fields that others don’t. For example the JiraClient requires a domain , username and password . Other clients might only need apiKey .

So the first method is to expose those fields into a map of string and bool . The string is the field name and the bool represents whether it should be masked in the terminal or not (passwords for example should not be exposed in the terminal *ever*)

Commits

After a bit of circling around during the stream, once I shut down the stream I was able to solve an issue I’ve been dealing with for the last 10 or so minutes of the stream.

Here are the commits done last night. Check out the code, the video and give feedback

I like this code much better than the previous iteration

My approach is always to have something that works *first*, refactor and make it better later.

After I have the initial thoughts and the interaction, I now know what to do better.

Next streams

We are going to continue streaming *every single day* this week.

You can find details about the stream schedule and where to find it in the post here: