← Back to issue list

Simplify the application run/stop cycle

View original Github issue

Metadata

Project
craft-cli
Number
#45
Type
issue
State
open
Author
facundobatista
Labels
—
Created
Updated
Closed
—

Current evaluation

Maintainer-filed feature request: add an `app_wrapper` context manager to craft-cli to handle emitter init, Dispatcher setup and exception/return-code handling. Design sketched in a 2022 comment; still not implemented in 3.4.x.

Suggested action: needs triage

Reason: The library is actively maintained (3.4.1 released 2026-06-17, 3.4.2 unreleased) and the requested helper is genuinely still missing: grep for 'app_wrapper' and 'wrapper' returns no implementation or commit, and docs/how-to/change-return-code.rst still documents the manual try/except ArgumentParsingError/ProvideHelpException/CraftError/KeyboardInterrupt boilerplate the issue wants to hide. However, the issue carries no labels, no assignee and no acceptance beyond the author's own truncated 2022 comment, so it shows no sign of being categorised or prioritized. The proposed signature also has drifted from the current API (Dispatcher now takes `appname`, not `app_name`/`greeting_msg`, plus new `docs_base_url`/`allow_default_command` params), so a re-confirmation of scope is needed before implementation.

Evaluated by: mr-cal-bot

Impact: 40 Quick Win: 18 Complexity: 40 Confidence: 80 Actionability: 75

Issue body

The lib should provide a way to handle the application bootstrapping and finishing (in several ways: ok, error, etc). The code is already in Charmcraft, we need to move it in here.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 40
Quick Win: 18
Complexity: 40
Confidence: 80
Actionability: 75
needs triage Maintainer-filed feature request: add an `app_wrapper` context manager to craft-cli to handle emitter init, Dispatcher setup and exception/return-code handling. Design sketched in a 2022 comment; still not implemented in 3.4.x.
qwen/qwen3.6-35b-a3b
Impact: 30
Quick Win: 11
Complexity: 40
Confidence: 70
Actionability: 60
needs triage Feature request to add a context manager for simplifying application run/stop cycle. Open for 1756 days with no implementation or maintainer response.
qwen/qwen3.8-27b
Impact: 50
Quick Win: 22
Staleness: 75
Complexity: 55
Confidence: 65
Support Request: 0
keep open Feature request to add an app_wrapper context manager to craft-cli that handles application bootstrapping/finishing, moving logic from Charmcraft. Open since 2021 with one maintainer design comment; no implementation found in current codebase.
qwen/qwen3.6-35b-a3b
Staleness: 90
Complexity: 60
Confidence: 85
Support Request: 10
close stale Design proposal for a context manager to simplify app bootstrapping and lifecycle management. Unaddressed since 2022 with no maintainer triage, labels, or implementation.
qwen3.6-35b-a3b-mtp-q6
Staleness: 92
Complexity: 45
Confidence: 85
Support Request: 10
needs triage Proposes a context manager API to simplify app bootstrapping and shutdown. Author is a maintainer, but the issue has been inactive for over a year with no labels or maintainer triage.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.