0.0.7
This commit is contained in:
parent
9835924def
commit
eff4fa2fe6
2 changed files with 20 additions and 3 deletions
21
source/app.d
21
source/app.d
|
@ -12,7 +12,20 @@ int main(string[] args)
|
|||
.add(new Command("init", "Initializing the repository for storing snapshots"))
|
||||
.add(new Command("status", "Checking the status of tracked files"))
|
||||
.add(new Command("create", "Create a new backup"))
|
||||
.add(new Command("list", "List of backups"))
|
||||
.add(new Command("list", "List of backups")
|
||||
.add(new Flag("c", "comment", "Show comment")
|
||||
.name("comment")
|
||||
.optional
|
||||
)
|
||||
.add(new Flag("u", "user", "Show user")
|
||||
.name("user")
|
||||
.optional
|
||||
)
|
||||
.add(new Flag("e", "email", "Show email")
|
||||
.name("email")
|
||||
.optional
|
||||
)
|
||||
)
|
||||
.add(new Command("restore", "Restore to the specified snapshot state")
|
||||
.add(new Argument("hash", "hash").required)
|
||||
)
|
||||
|
@ -50,7 +63,11 @@ int main(string[] args)
|
|||
snag.create()
|
||||
)
|
||||
.on("list", list =>
|
||||
snag.list()
|
||||
snag.list(
|
||||
list.flag("comment"),
|
||||
list.flag("user"),
|
||||
list.flag("email")
|
||||
)
|
||||
)
|
||||
.on("restore", restore =>
|
||||
snag.restore(restore.arg("hash"))
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
module snag.version_;
|
||||
|
||||
enum snagVersion = "0.0.6";
|
||||
enum snagVersion = "0.0.7";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue