mirror of
https://github.com/davidallendj/configurator.git
synced 2025-12-20 03:27:02 -07:00
Added TODO about limiting args
This commit is contained in:
parent
4a52188353
commit
7e50a36275
1 changed files with 3 additions and 0 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue