Skip to content

Commit

Permalink
cli bug
Browse files Browse the repository at this point in the history
  • Loading branch information
gavincabbage committed Sep 22, 2019
1 parent 1443aa0 commit bc78381
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion chiv.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Package chiv archives relational database tables to Amazon S3.
// Package chiv archives relational database tables to Amazon S3
package chiv

import (
Expand Down
4 changes: 1 addition & 3 deletions cmd/chiv/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,7 @@ func run(ctx *cli.Context) (err error) {
client := s3.New(awsSession)
uploader := s3manager.NewUploaderWithClient(client)

fmt.Printf("Hello, World! (version %s)\n", version)
return chiv.Archive(db, uploader, config.table, config.bucket, config.options...)

}

type config struct {
Expand All @@ -127,7 +125,7 @@ type config struct {

func from(ctx *cli.Context) config {
cfg := config{
url: ctx.String("url"),
url: ctx.String("database"),
table: ctx.String("table"),
bucket: ctx.String("bucket"),
driver: ctx.String("driver"),
Expand Down

0 comments on commit bc78381

Please sign in to comment.