mirror of
https://github.com/davidallendj/configurator.git
synced 2025-12-19 19:17:01 -07:00
chore: tidy and code cleanup
This commit is contained in:
parent
d2b6178350
commit
ad45a540f0
6 changed files with 7 additions and 14 deletions
|
|
@ -1,8 +1,7 @@
|
|||
package cmd
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/rs/zerolog/log"
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/OpenCHAMI/configurator/pkg/config"
|
||||
|
|
@ -20,7 +19,7 @@ var configCmd = &cobra.Command{
|
|||
for _, path := range args {
|
||||
// check and make sure something doesn't exist first
|
||||
if exists, err := util.PathExists(path); exists || err != nil {
|
||||
fmt.Printf("file or directory exists\n")
|
||||
log.Error().Err(err).Msg("file or directory exists")
|
||||
continue
|
||||
}
|
||||
config.SaveDefault(path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue