Skip to content

Commit 4329f04

Browse files
committed
improve output formatting
Signed-off-by: Daniel Stamer <[email protected]>
1 parent cd82cab commit 4329f04

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmd/get.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package cmd
33
import (
44
"fmt"
55
"io/ioutil"
6+
"os"
67

78
tresor "github.com/helloworlddan/tresor/lib"
89
"github.com/spf13/cobra"
@@ -46,6 +47,7 @@ var getCmd = &cobra.Command{
4647
// Dump to STDOUT if no file specified
4748
if localWritePath == "" {
4849
fmt.Printf("%s", string(plainBytes))
50+
fmt.Fprintln(os.Stderr) // Print newline to STDERR to get prompt break right
4951
return
5052
}
5153

0 commit comments

Comments
 (0)