Skip to content

Commit

Permalink
lint: Delete unused function and variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Aervyon committed Mar 27, 2024
1 parent d306914 commit 2e8e14a
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ import (
"os"
"strings"

"github.com/Folderr/foldcli/utilities"
"github.com/spf13/cobra"
"github.com/spf13/viper"
)

var authFlag string
var dry bool

var rootCmdName = "foldcli"
var envPrefix = "FOLDCLI_"
var rootCmdName = utilities.Constants.RootCmdName
var envPrefix = utilities.Constants.EnvPrefix

// RootCmd represents the base command when called without any subcommands
var RootCmd = &cobra.Command{
Expand Down Expand Up @@ -168,9 +168,6 @@ func ReadConfig() (bool, error) {
panic(err)
}
}
if getToken() != "" {
authFlag = getToken()
}
if viper.IsSet("repository") {
config.repository = viper.GetString("repository")
}
Expand All @@ -188,10 +185,6 @@ func println(a ...any) {
fmt.Fprintln(RootCmd.OutOrStdout(), a...)
}

func printf(format string, a ...any) {
fmt.Fprintf(RootCmd.OutOrStdout(), format, a...)
}

func init() {
// rootCmd.PersistentFlags().BoolVar(&dry, "dry", false, "Runs the command but does not change ANYTHING")
RootCmd.SetVersionTemplate("Folderr CLI Version: {{ .Version }}\n")
Expand Down

0 comments on commit 2e8e14a

Please sign in to comment.