Repository navigation
Commit af20d74
fix(get): append trailing newline only on interactive TTY (#9)
`secret get` omits the trailing newline for pipe-friendliness, but in an
interactive zsh that shows a reverse-video `%` missing-newline marker after
the value. Add `[ -t 1 ] && printf '\n'` so a newline is emitted ONLY when
stdout is a terminal; piped / command-substitution output stays byte-exact.
Co-authored-by: dancinlab <noreply@dancinlab>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent a791099 commit af20d74
3 files changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
145 | 150 | | |
146 | 151 | | |
147 | 152 | | |
| |||
0 commit comments