current state

This commit is contained in:
2021-04-12 10:55:57 +02:00
parent d293e93fa8
commit 640b60c47f
11 changed files with 113 additions and 22 deletions

View File

@@ -20,6 +20,7 @@ import (
"os"
"github.com/cupcakearmy/autorestic/internal"
"github.com/cupcakearmy/autorestic/internal/colors"
"github.com/cupcakearmy/autorestic/internal/lock"
"github.com/spf13/cobra"
@@ -83,7 +84,7 @@ func initConfig() {
// If a config file is found, read it in.
if err := viper.ReadInConfig(); err == nil {
fmt.Fprintln(os.Stderr, "Using config file:", viper.ConfigFileUsed())
colors.Faint.Println("Using config file:", viper.ConfigFileUsed())
}
internal.GetConfig()