-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.go
45 lines (39 loc) · 760 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
36
37
38
39
40
41
42
43
44
45
package main
import (
"log"
"os"
cmd "github.com/eminmuhammadi/davinci/cmd"
cli "github.com/urfave/cli/v2"
)
const (
VERSION = "0.1.0"
)
var Commands = []*cli.Command{
cmd.NewPassphrase(),
cmd.NewKeyPair(),
cmd.Decrypt(),
cmd.Encrypt(),
cmd.NewKey(),
}
func main() {
app := &cli.App{
Name: "davinci",
Usage: "CLI tool for encrypting and decrypting large files",
Version: VERSION,
Authors: []*cli.Author{{
Name: "Emin Muhammadi",
Email: "muemin.info@gmail.com",
}},
Copyright: "(c) 2022 Emin Muhammadi",
ExtraInfo: func() map[string]string {
return map[string]string{
"LICENSE": "MIT License",
}
},
Commands: Commands,
Suggest: true,
}
if err := app.Run(os.Args); err != nil {
log.Fatal(err)
}
}