Skip to content

Commit

Permalink
Fix printing newlines for context subcommands
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Sommer committed Oct 13, 2020
1 parent c883cea commit 82c9f36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/context_add.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ var addCmd = &cobra.Command{
AppConf.Config.ActiveContextName = name
AppConf.Config.WriteCurrentConfig()
AppConf.CurrentContext = context
fmt.Printf("added context '%s'", name)
fmt.Printf("added context '%s'\n", name)
},
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/context_use.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var useCmd = &cobra.Command{
FatalOnError(err)

AppConf.Config.WriteCurrentConfig()
fmt.Printf("switched to context '%s'", contextName)
fmt.Printf("switched to context '%s'\n", contextName)
},
}

Expand Down

0 comments on commit 82c9f36

Please sign in to comment.