From b5167eaec89451b7f9d49536f2864dc411518bcc Mon Sep 17 00:00:00 2001 From: SwayKh Date: Sun, 22 Sep 2024 22:07:14 +0530 Subject: [PATCH] Remove Unused flags for Source, Remove and Add subcommand --- cmd/flags.go | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/cmd/flags.go b/cmd/flags.go index 904ec6f..0b3e3c8 100644 --- a/cmd/flags.go +++ b/cmd/flags.go @@ -11,10 +11,6 @@ var ( SourceFlag *flag.FlagSet UpdateInitBool bool HelpFlag *bool - SPath string - DPath string - RemovePath string - ConfigPath string ) // Setup the Flags for the CLI @@ -28,13 +24,7 @@ func CreateFlags() { InitFlag = flag.NewFlagSet("init", flag.ExitOnError) SourceFlag = flag.NewFlagSet("source", flag.ExitOnError) - AddFlag.StringVar(&SPath, "source", "", "Source path for the file to symlink") - AddFlag.StringVar(&DPath, "destination", "", "(Optional) Destination for symlink") - - RemoveFlag.StringVar(&RemovePath, "path", "", "Path to remove symlink") - + // Create a -u, --update flag for init subcommand to call UpdateInit function InitFlag.BoolVar(&UpdateInitBool, "u", false, "Update just the Init Directory variable on config") InitFlag.BoolVar(&UpdateInitBool, "update", false, "Update just the Init Directory variable on config") - - SourceFlag.StringVar(&ConfigPath, "path", "", "Path to config file to source") }