Added TODO about limiting args

This commit is contained in:
David Allen 2024-07-29 19:20:55 -06:00
parent 4a52188353
commit 7e50a36275
Signed by: towk
GPG key ID: 793B2924A49B3A3F

View file

@ -14,6 +14,9 @@ var configCmd = &cobra.Command{
Short: "Create a new default config file", Short: "Create a new default config file",
Run: func(cmd *cobra.Command, args []string) { Run: func(cmd *cobra.Command, args []string) {
// create a new config at all args (paths) // create a new config at all args (paths)
//
// TODO: change this to only take a single arg since more
// than one arg is *maybe* a mistake
for _, path := range args { for _, path := range args {
// check and make sure something doesn't exist first // check and make sure something doesn't exist first
if exists, err := util.PathExists(path); exists || err != nil { if exists, err := util.PathExists(path); exists || err != nil {