camsync: formatting

Change-Id: Idd69072bcc0ec38ee5d0cc4dc8c8f7a74581edf3
This commit is contained in:
Brad Fitzpatrick 2012-12-21 16:41:15 -08:00
parent 21d142e538
commit e2d0fd6aa3
1 changed files with 13 additions and 11 deletions

View File

@ -17,26 +17,28 @@ limitations under the License.
package main
import (
"camlistore.org/pkg/blobref"
"camlistore.org/pkg/client"
"errors"
"flag"
"fmt"
"log"
"os"
"camlistore.org/pkg/blobref"
"camlistore.org/pkg/client"
)
// Things that can be uploaded. (at most one of these)
var flagLoop = flag.Bool("loop", false, "sync in a loop once done; requires --removesrc")
var flagVerbose = flag.Bool("verbose", false, "be verbose")
var (
flagLoop = flag.Bool("loop", false, "sync in a loop once done; requires --removesrc")
flagVerbose = flag.Bool("verbose", false, "be verbose")
var flagSrc = flag.String("src", "", "Source blobserver prefix (generally a mirrored queue partition)")
var flagSrcPass = flag.String("srcpassword", "", "Source password")
var flagDest = flag.String("dest", "", "Destination blobserver, or 'stdout' to just enumerate the --src blobs to stdout")
var flagDestPass = flag.String("destpassword", "", "Destination password")
flagSrc = flag.String("src", "", "Source blobserver prefix (generally a mirrored queue partition)")
flagSrcPass = flag.String("srcpassword", "", "Source password")
flagDest = flag.String("dest", "", "Destination blobserver, or 'stdout' to just enumerate the --src blobs to stdout")
flagDestPass = flag.String("destpassword", "", "Destination password")
var flagRemoveSource = flag.Bool("removesrc", false,
"remove each blob from the source after syncing to the destination; for queue processing")
flagRemoveSource = flag.Bool("removesrc", false,
"remove each blob from the source after syncing to the destination; for queue processing")
)
type SyncStats struct {
BlobsCopied int