1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2025-03-16 00:00:05 +01:00

Small text changes

This commit is contained in:
ibib 2017-02-11 22:36:19 +01:00
parent f51c1a43d1
commit fc6bdfe253
2 changed files with 3 additions and 3 deletions

View file

@ -96,7 +96,7 @@ func runSnapshots(opts SnapshotOptions, gopts GlobalOptions, args []string) erro
return nil
}
//printSnapshotsReadable provides human redability
// printSnapshotsReadable prints a text table of the snapshots in list to stdout.
func printSnapshotsReadable(list []*restic.Snapshot) {
tab := NewTable()
@ -160,7 +160,7 @@ type Snapshot struct {
Directories []string `json:"directories"`
}
//printSnapshotsJSON provides machine redability
// printSnapshotsJSON writes the JSON representation of list to stdout.
func printSnapshotsJSON(list []*restic.Snapshot) error {
enc := json.NewEncoder(os.Stdout)

View file

@ -54,7 +54,7 @@ func init() {
f.StringVarP(&globalOptions.PasswordFile, "password-file", "p", "", "read the repository password from a file")
f.BoolVarP(&globalOptions.Quiet, "quiet", "q", false, "do not output comprehensive progress report")
f.BoolVar(&globalOptions.NoLock, "no-lock", false, "do not lock the repo, this allows some operations on read-only repos")
f.BoolVarP(&globalOptions.JSON, "json", "", false, `print snapshots in json format`)
f.BoolVarP(&globalOptions.JSON, "json", "", false, "set output mode to JSON for commands that support it")
restoreTerminal()
}