mirror of
https://github.com/kopia/kopia.git
synced 2026-10-21 13:44:48 -04:00
added default CLI commands
This commit is contained in:
1 parent
54aeea8ee6
commit
47b1e09ba9
3 files changed
+3
-3
No files matched your search
@@ -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()
|
||||
)
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user