We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0728800 commit faf0359Copy full SHA for faf0359
1 file changed
commands/root.go
@@ -89,26 +89,3 @@ func initConfig() {
89
fmt.Println("Using config file:", viper.ConfigFileUsed())
90
}
91
92
-
93
-// func setWebdir() string {
94
-// if os.Getenv("DODPATH") == "" {
95
-// pwd, err := os.Getwd()
96
-// if err != nil {
97
-// fmt.Println(err)
98
-// os.Exit(1)
99
-// }
100
-// return pwd
101
102
-// s := os.Getenv("DODPATH")
103
-// s = strings.TrimSuffix(s, "/")
104
-// s = strings.TrimSuffix(s, "\\")
105
-// return s
106
107
108
-// func validateWebDir(webdir string) bool {
109
-// filename := "a-nonexistent-file"
110
-// if _, err := os.Stat(filename); os.IsNotExist(err) {
111
-// fmt.Printf("file does not exist")
112
113
114
0 commit comments