fix(cmd/pastes): Print newline on raw output

This commit is contained in:
jolts 2025-02-04 12:14:18 +02:00
parent f50f3f97f8
commit 685b156312
Signed by untrusted user who does not match committer: xlarp
GPG key ID: 173C05E221B5DB30

View file

@ -89,7 +89,7 @@ func GetPaste(c *cli.Context) error {
}
if rawOutput {
fmt.Print(response.Data.Content)
fmt.Println(response.Data.Content)
} else {
fmt.Printf("Content: %s\nCreated at: %s\n", response.Data.Content, response.Data.CreatedAt.Format("2006-01-02 15:04:05"))
}