Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

solve #6 #8

Merged
merged 4 commits into from
Sep 20, 2018
Merged

solve #6 #8

merged 4 commits into from
Sep 20, 2018

Conversation

fabulousduck
Copy link
Contributor

@fabulousduck fabulousduck commented Sep 20, 2018

main.go Outdated
panic(fmt.Sprintf("`%s` unknown command", os.Args[1]))
}
} else {
//TODO (#7) implement a map for options instead of println'ing them all there
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, check out the format of reported TODOs It should look like

// TODO(#7): implement a map for options instead of println'ing them all there

Also, you please leave unreported TODOs I'll report all of them myself once the PR is approved. This is because some TODOs may be eliminated or changed during the review. This one is fine, though. Let's keep it. 👍

main.go Outdated
} else {
//TODO (#7) implement a map for options instead of println'ing them all there
//also, not sure these descriptions are exactly what rexim means by them
fmt.Printf("snitch [opt]\n\tlist: lists all possible subcommands\n\treport: reports an issue to github\n")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't Go have multiline strings?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does, but do note that multiline strings take their indent from code, so maintaining gofmt, it would result looking like this instead of this which looks nicer imo

@rexim rexim mentioned this pull request Sep 20, 2018
main.go Outdated
@@ -124,7 +124,7 @@ func main() {
panic(fmt.Sprintf("`%s` unknown command", os.Args[1]))
}
} else {
//TODO (#7) implement a map for options instead of println'ing them all there
//TODO (#8) implement a map for options instead of println'ing them all there
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You were correct before the change. It should be #7. :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, i thought #7 was the CI issue lmao

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this does bring a new a new interesting issue, that TODO's do need to be kept in sync with whats reported on github

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fabulousduck lol my bad. The TODO should have the id of the issue it's associated with. So it should be TODO(#9). We both fucked up here. :D

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fabulousduck that's why it is better to just leave unreported TODO and let me fuck up alone :D

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

haha, sure ;)

@rexim
Copy link
Member

rexim commented Sep 20, 2018

@fabulousduck looks good to me. Multiline strings are not necessary for now. Thank you for the PR!

@rexim rexim merged commit d0d5613 into tsoding:master Sep 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants