Skip to content

Commit

Permalink
fix add cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
sunny0826 committed Dec 9, 2019
1 parent 9033726 commit b44740f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmd/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,12 @@ kubecm add -f example.yaml -c
if err != nil {
Error.Println(err.Error())
} else {
log.Printf("「%s」 add successful!", file)
err = Formatable(nil)
if cover {
log.Printf("「%s」 add successful!", file)
err = Formatable(nil)
}else {
log.Println("generate ./config.yaml")
}
if err != nil {
log.Println(err)
os.Exit(1)
Expand Down

0 comments on commit b44740f

Please sign in to comment.