You've already forked rsa-file-encryption
compile time
This commit is contained in:
8
main.go
8
main.go
@@ -5,6 +5,7 @@ import (
|
|||||||
"github.com/siteworxpro/rsa-file-encryption/printer"
|
"github.com/siteworxpro/rsa-file-encryption/printer"
|
||||||
"github.com/urfave/cli/v2"
|
"github.com/urfave/cli/v2"
|
||||||
"os"
|
"os"
|
||||||
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
@@ -13,6 +14,9 @@ func main() {
|
|||||||
|
|
||||||
app := &cli.App{
|
app := &cli.App{
|
||||||
Name: "rsa-file-encryption",
|
Name: "rsa-file-encryption",
|
||||||
|
Version: printer.Version,
|
||||||
|
Compiled: time.Now(),
|
||||||
|
EnableBashCompletion: true,
|
||||||
Usage: "a file encryption tool using rsa key pairs to encrypt files using AES-256-CBC",
|
Usage: "a file encryption tool using rsa key pairs to encrypt files using AES-256-CBC",
|
||||||
Commands: []*cli.Command{
|
Commands: []*cli.Command{
|
||||||
{
|
{
|
||||||
@@ -106,6 +110,8 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if err := app.Run(os.Args); err != nil {
|
if err := app.Run(os.Args); err != nil {
|
||||||
p.LogError(err.Error())
|
p.LogError("error" + err.Error())
|
||||||
|
|
||||||
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user