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

cmd #49

Closed
damianoneill opened this issue Jun 11, 2020 · 3 comments · Fixed by #50 or #52
Closed

cmd #49

damianoneill opened this issue Jun 11, 2020 · 3 comments · Fixed by #50 or #52

Comments

@damianoneill
Copy link

Would it be possible to refactor the main.go into a folder as follows;

go get -u github.com/augmentable-dev/tickgit/cmd/tickgit

So that the binary would be tickgit instead of cmd?

Thanks,
Damian.

@damianoneill
Copy link
Author

@patrickdevivo sorry I wasn't clear. The change should be to introduce a new folder. It should be

github.com/augmentable-dev/tickgit/cmd/tickgit/main.go

The the pull will be

go get -u github.com/augmentable-dev/tickgit/cmd/tickgit

@patrickdevivo
Copy link
Contributor

@damianoneill ah I understand! That seems to be inline with what we probably should be doing anyways: https://github.com/golang-standards/project-layout/tree/master/cmd

PR #52 should address properly?

@damianoneill
Copy link
Author

@patrickdevivo all good.

$ go get -u github.com/augmentable-dev/tickgit/cmd/tickgit
✔ ~
01:07 $ tickgit --help
Scans a given git repository looking for any code comments with TODOs. Displays a report of all the TODO items found.

Usage:
  todos [flags]

Flags:
      --csv-output   specify whether or not output should be in CSV format
  -h, --help         help for todos
✔ ~

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants