Skip to content

Commit

Permalink
Remove Unused flags for Source, Remove and Add subcommand
Browse files Browse the repository at this point in the history
  • Loading branch information
SwayKh committed Sep 22, 2024
1 parent d4f5f6f commit b5167ea
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions cmd/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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")
}

0 comments on commit b5167ea

Please sign in to comment.