-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.go
35 lines (31 loc) · 766 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package main
import (
"github.com/elbandi/proxmox-backup-tools/cmd/checksum"
"github.com/elbandi/proxmox-backup-tools/cmd/compare"
"github.com/elbandi/proxmox-backup-tools/cmd/dump"
"github.com/elbandi/proxmox-backup-tools/cmd/reencrypt"
"github.com/urfave/cli/v2"
"log"
"os"
)
func main() {
cli.VersionFlag = &cli.BoolFlag{
Name: "print-version",
Aliases: []string{"V"},
Usage: "print only the version",
}
app := &cli.App{
Name: "proxmox-backup-tools",
Version: "v1.0",
Description: "Proxmox Backup tools",
Commands: []*cli.Command{
&checksum.ChecksumCommand,
&compare.CompareCommand,
&dump.DumpHashCommand,
&reencrypt.ReencryptCommand,
},
}
if err := app.Run(os.Args); err != nil {
log.Fatal(err)
}
}