compile time

This commit is contained in:
2024-04-30 16:10:44 -04:00
parent 8b15885a8b
commit f0caa47efa

View File

@@ -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)
} }
} }