Fix debug functions

This commit is contained in:
Alexander Neumann 2015-06-24 20:00:01 +02:00
parent 6c2d6bfd11
commit d5020ac109
3 changed files with 3 additions and 3 deletions

View File

@ -30,6 +30,7 @@ install:
script: script:
- gox -verbose -os "${GOX_OS}" -tags "release" ./cmd/restic - gox -verbose -os "${GOX_OS}" -tags "release" ./cmd/restic
- gox -verbose -os "${GOX_OS}" -tags "debug" ./cmd/restic.debug
- go run run_tests.go all.cov - go run run_tests.go all.cov
- GOARCH=386 RESTIC_TEST_INTEGRATION=0 go test ./... - GOARCH=386 RESTIC_TEST_INTEGRATION=0 go test ./...
- goveralls -coverprofile=all.cov -service=travis-ci -repotoken "$COVERALLS_TOKEN" || true - goveralls -coverprofile=all.cov -service=travis-ci -repotoken "$COVERALLS_TOKEN" || true

View File

@ -16,14 +16,14 @@ import (
) )
type CmdDump struct { type CmdDump struct {
global *MainOptions global *GlobalOptions
} }
func init() { func init() {
_, err := parser.AddCommand("dump", _, err := parser.AddCommand("dump",
"dump data structures", "dump data structures",
"The dump command dumps data structures from a repository as JSON documents", "The dump command dumps data structures from a repository as JSON documents",
&CmdDump{global: &mainOpts}) &CmdDump{global: &globalOpts})
if err != nil { if err != nil {
panic(err) panic(err)
} }

View File

@ -12,7 +12,6 @@ import (
"strconv" "strconv"
"strings" "strings"
"sync" "sync"
"syscall"
) )
var opts struct { var opts struct {