Skip to content

Commit

Permalink
fix bug of Newline
Browse files Browse the repository at this point in the history
  • Loading branch information
sunny0826 committed Jan 17, 2020
1 parent 5dfc79c commit 225c608
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func (ac *AddCommand) runAdd(command *cobra.Command, args []string) error {
Error.Println(err.Error())
} else {
if cover {
ac.command.Printf("「%s」 add successful!", file)
ac.command.Printf("「%s」 add successful!\n", file)
err = Formatable(nil)
} else {
ac.command.Println("generate ./config.yaml")
Expand Down
4 changes: 2 additions & 2 deletions cmd/rename.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func (rc *RenameCommand) runRename(command *cobra.Command, args []string) error
config.Contexts[newName] = obj
delete(config.Contexts, key)
config.CurrentContext = newName
rc.command.Printf("Rename %s to %s", key, newName)
rc.command.Printf("Rename %s to %s\n", key, newName)
break
}
}
Expand All @@ -106,7 +106,7 @@ func (rc *RenameCommand) runRename(command *cobra.Command, args []string) error
config.CurrentContext = newName
}
} else {
rc.command.Printf("Can not find context: %s", oldName)
rc.command.Printf("Can not find context: %s\n", oldName)
err := Formatable(nil)
if err != nil {
log.Fatal(err)
Expand Down

0 comments on commit 225c608

Please sign in to comment.