Commit 4a13a4d
fix(cli): replace unsafe syscalls with x/term.IsTerminal
Gosec G103 flagged the raw ioctl calls. Use golang.org/x/term which
handles platform-specific TTY detection internally, and consolidate
three platform files into one.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 94c45bb commit 4a13a4d
5 files changed
Lines changed: 13 additions & 55 deletions
File tree
- internal/cli
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| 140 | + | |
140 | 141 | | |
141 | 142 | | |
142 | 143 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments