anchore / anchore/clio

clio should have a generic panic recovery function

Open
#84 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
18
Forks
10
PR merge metrics
No merged PRs in 30d

Description

**What would you like to be added**:

A Clio CLI, when it encounters a panic, should recover and print out the stack trace in good order, get the terminal out of raw mode, tear down any TUI as far as possible, and explain to the user to have a bug report.

I think this would require adding a parameter like "bugReportURL" to the App constructor, and then clio could template out a nice panic / recovery screen.

**Why is this needed**:

Right now, when apps using Clio panic, the TUI isn't torn down and the tty is left in raw mode, leaving the user to figure out what to do with a broken-looking terminal and a weirdly indented stack trace.

**Additional context**:

Contributor guide

No contributing guide indexed for this repository

Research direction

No files, tests, or entry points are named. Start by locating the App constructor and existing TUI, terminal-lifecycle, and panic-handling paths; done means panics produce an orderly stack trace, restore the terminal, tear down the TUI as far as possible, and show bug-report guidance.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.