-
Notifications
You must be signed in to change notification settings - Fork 237
Changed CLI to use --types flag, a comma separated list of desired an… #68
Changed CLI to use --types flag, a comma separated list of desired an… #68
Conversation
006437d
to
b7f283b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You'll need to update the tests to match the new format here. Also, can you update the README? We also might want to think about adding a -h
command to give users an easy way of finding the available differs through the tool
be604f0
to
3de426f
Compare
tests and README updated. updating |
6a11153
to
256efba
Compare
Looks like we accidentally added a "main" file to the repo that's now conflicting. You'll have to delete. |
256efba
to
1c91683
Compare
deleted 'main' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One nit, otherwise LGTM.
cmd/diff_test.go
Outdated
@@ -13,7 +13,8 @@ var diffArgNumTests = []testpair{ | |||
|
|||
func TestDiffArgNum(t *testing.T) { | |||
for _, test := range diffArgNumTests { | |||
valid, err := checkDiffArgNum(test.input) | |||
err := checkDiffArgNum(test.input) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a bit weird of a construct. Do we need err and valid? Could you do something like:
valid := (checkDiffArgNum == nil) ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good point, changed
1c91683
to
b2b5473
Compare
the tests output the err on unexpected errors so storing it separately is needed. changing it back |
i can just use (err == nil) in place of valid |
b2b5473
to
49e498b
Compare
49e498b
to
c8a7267
Compare
No description provided.