added default CLI commands

This commit is contained in:
Jarek Kowalski committed 2018-03-15 09:39:39 -07:00
1 parent 54aeea8ee6
commit 47b1e09ba9
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@ import (
)
var (
blockIndexListCommand = blockIndexCommands.Command("list", "List block indexes").Alias("ls")
blockIndexListCommand = blockIndexCommands.Command("list", "List block indexes").Alias("ls").Default()
blockIndexListAll = blockIndexListCommand.Flag("all", "List all blocks, not just active ones").Short('a').Bool()
blockIndexListSummary = blockIndexListCommand.Flag("summary", "Display block summary").Bool()
)
+1 -1
View File
@@ -9,7 +9,7 @@ import (
)
var (
manifestListCommand = manifestCommands.Command("list", "List manifest items").Alias("ls")
manifestListCommand = manifestCommands.Command("list", "List manifest items").Alias("ls").Default()
manifestListPrefix = manifestListCommand.Flag("prefix", "Prefix").String()
manifestListFilter = manifestListCommand.Flag("filter", "List of key:value pairs").Strings()
manifestListSort = manifestListCommand.Flag("sort", "List of keys to sort by").Strings()
+1 -1
View File
@@ -27,7 +27,7 @@ const (
)
var (
snapshotCreateCommand = snapshotCommands.Command("create", "Creates a snapshot of local directory or file.")
snapshotCreateCommand = snapshotCommands.Command("create", "Creates a snapshot of local directory or file.").Default()
snapshotCreateSources = snapshotCreateCommand.Arg("source", "Files or directories to create snapshot(s) of.").ExistingFilesOrDirs()
snapshotCreateAll = snapshotCreateCommand.Flag("all", "Create snapshots for files or directories previously backed up by this user on this computer").Bool()