Преглед изворни кода

feat: Rollback files (main.go , Makefile)

kaveh-ahangar пре 1 година
родитељ
комит
83ffa25d6f
2 измењених фајлова са 0 додато и 29 уклоњено
  1. 0 14
      Makefile
  2. 0 15
      main.go

+ 0 - 14
Makefile

@@ -1,14 +0,0 @@
-
-all: build
-
-init:
-	# create dirs
-	mkdir -p ./build
-
-clear:
-	# clear dirs
-	rm -rf ./build
-
-build: clear init
-	# build
-	go build -o ./build/x-ui ./cmd/x-ui/main.go

+ 0 - 15
cmd/x-ui/main.go → main.go

@@ -238,21 +238,6 @@ func removeSecret() {
 	}
 }
 
-var vars struct {
-	showVersion          bool
-	dbPath               string
-	port                 int
-	username             string
-	password             string
-	tgbottoken           string
-	tgbotchatid          string
-	enableTelegramBot    bool
-	tgbotRuntime         string
-	resetSettings        bool
-	showSettings         bool
-	removeAllSecretsFlag bool
-}
-
 func main() {
 	var rootCmd = &cobra.Command{
 		Use: "x-ui",