Skip to content

Commit f56dd80

Browse files
committed
style(tui): satisfy errcheck in usage printer
1 parent b6d9a56 commit f56dd80

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

cmd/bodek/main.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,17 @@ func parseConfig(args []string, output io.Writer) (config, error) {
4747
fs.StringVar(&cfg.bin, "odek-bin", "", "path to the odek binary to spawn (default: odek on PATH)")
4848
fs.BoolVar(&cfg.mouse, "mouse", false, "enable mouse wheel scrolling (disables native text selection/copy)")
4949
fs.Usage = func() {
50-
fmt.Fprintf(fs.Output(), "Usage: bodek [options] [-- <odek serve flags>]\n\n")
51-
fmt.Fprintf(fs.Output(), "A terminal interface for the odek agent.\n\n")
52-
fmt.Fprintf(fs.Output(), "Options:\n")
50+
_, _ = fmt.Fprintf(fs.Output(), "Usage: bodek [options] [-- <odek serve flags>]\n\n")
51+
_, _ = fmt.Fprintf(fs.Output(), "A terminal interface for the odek agent.\n\n")
52+
_, _ = fmt.Fprintf(fs.Output(), "Options:\n")
5353
fs.PrintDefaults()
54-
fmt.Fprintf(fs.Output(), "\nExamples:\n")
55-
fmt.Fprintf(fs.Output(), " bodek # spawn odek serve and start chatting\n")
56-
fmt.Fprintf(fs.Output(), " bodek --sandbox # spawn odek serve with Docker sandbox\n")
57-
fmt.Fprintf(fs.Output(), " bodek --url 'http://127.0.0.1:8080/?token=…' # attach with the token URL odek serve printed\n")
58-
fmt.Fprintf(fs.Output(), " bodek --url http://127.0.0.1:8080 --token d3adb33f # attach with an explicit token\n")
59-
fmt.Fprintf(fs.Output(), " bodek --mouse # enable mouse wheel scrolling (blocks text selection)\n")
60-
fmt.Fprintf(fs.Output(), " bodek -- --prompt-caching # pass extra flags to odek serve\n")
54+
_, _ = fmt.Fprintf(fs.Output(), "\nExamples:\n")
55+
_, _ = fmt.Fprintf(fs.Output(), " bodek # spawn odek serve and start chatting\n")
56+
_, _ = fmt.Fprintf(fs.Output(), " bodek --sandbox # spawn odek serve with Docker sandbox\n")
57+
_, _ = fmt.Fprintf(fs.Output(), " bodek --url 'http://127.0.0.1:8080/?token=…' # attach with the token URL odek serve printed\n")
58+
_, _ = fmt.Fprintf(fs.Output(), " bodek --url http://127.0.0.1:8080 --token d3adb33f # attach with an explicit token\n")
59+
_, _ = fmt.Fprintf(fs.Output(), " bodek --mouse # enable mouse wheel scrolling (blocks text selection)\n")
60+
_, _ = fmt.Fprintf(fs.Output(), " bodek -- --prompt-caching # pass extra flags to odek serve\n")
6161
}
6262
if err := fs.Parse(args); err != nil {
6363
fs.Usage()

0 commit comments

Comments
 (0)