Merge lp:~savilerow-team/savilerow/savvy-go-cli-test into lp:savilerow/savvy
Proposed by
Chris Wayne
Status: | Merged |
---|---|
Merged at revision: | 17 |
Proposed branch: | lp:~savilerow-team/savilerow/savvy-go-cli-test |
Merge into: | lp:savilerow/savvy |
Diff against target: |
148 lines (+68/-14) 3 files modified
savvy-tailor/add.go (+14/-13) savvy-tailor/main.go (+42/-0) savvy-tailor/test.go (+12/-1) |
To merge this branch: | bzr merge lp:~savilerow-team/savilerow/savvy-go-cli-test |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jani Monoses (community) | Approve | ||
Review via email: mp+216239@code.launchpad.net |
Description of the change
Implement the test command in the CLI app
To post a comment you must log in.
Maybe using filepath.Walk would result in shorter code than doing the IterDirectory by hand. Walk is a bit weird to figure out initially, you need to pass it a closure so it has access to whatever initial setup and variables you have, like the tar writer. You need your own IterDirectory though if you need symlinks included in the tar, which it does not traverse. This is one area where the shell script clearly beats Go (and probably anything else) :)
Is .gz optional, why is it commented out?