Commit 7b87056a authored by Necross Silverlight's avatar Necross Silverlight
Browse files

rename project

parent 208f725b
Pipeline #139 failed with stages
in 10 minutes and 3 seconds
......@@ -7,7 +7,7 @@ import (
"os"
"github.com/urfave/cli/v2"
"gitlab.bad-wolf.fr/wolf/secretconfig"
"gitlab.bad-wolf.fr/wolf/configvault"
)
func decrypt(c *cli.Context) error {
......@@ -42,7 +42,7 @@ func decrypt(c *cli.Context) error {
}
}
secretCfg := secretconfig.New()
secretCfg := configvault.New()
if err := secretCfg.Load(srcReader); err != nil {
return fmt.Errorf("unable to read secret from file: %w", err)
}
......
......@@ -8,7 +8,7 @@ import (
"os"
"github.com/urfave/cli/v2"
"gitlab.bad-wolf.fr/wolf/secretconfig"
"gitlab.bad-wolf.fr/wolf/configvault"
)
func encrypt(c *cli.Context) error {
......@@ -46,7 +46,7 @@ func encrypt(c *cli.Context) error {
}
// Encrypt data
secretCfg := secretconfig.New()
secretCfg := configvault.New()
if err := secretCfg.Encrypt(srcData, *pubKey); err != nil {
return fmt.Errorf("unable to encrypt data")
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment