← Back to issue list

create-lib should explain what it is about to do and ask for confirmation

View original Github issue

Metadata

Project
charmcraft
Number
#195
Type
issue
State
open
Author
markshuttle
Labels
Status: Triaged Type: Enhancement
Created
Updated
Closed

Current evaluation

Enhancement request for charmcraft create-lib to print a summary of the library it will create and ask for confirmation before creating it. Triaged (labelled, synced to internal Jira ticket CHARMCRAFT-653), but no implementation yet.

Suggested action: keep open

Reason: The issue is labelled 'Status: Triaged' and 'Type: Enhancement' and was synced to internal ticket CHARMCRAFT-653 in September 2025, so it has been acknowledged and is not stale. The current CreateLibCommand.run() in charmcraft/application/commands/store.py still calls store.create_library_id() and writes the template file without any confirmation prompt, so the requested behaviour is not implemented. It is a small, well-scoped UX improvement, so it should remain open.

Impact: 30 Quick Win: 22.5 Staleness: 55 Complexity: 25 Confidence: 70 Support Request: 0

Issue body

While we can clean up bad data in charmhub, it will be a pain if there are lots of crappy mistakes in the charm library service. So charmcraft should be very explicit about what it is trying to do when you use create-lib. For example: ``` $ charmcraft create-lib db This command will create lib/charms/sabdfl-hello-world/v0/db.py The charm library will be available to any charmer as: charms.sabdfl-hello-world.v0.db It will be visible at charmhub.io/sabdfl-hello-world/libs/db For more information about charm libraries, please see https://charmhub.io/docs/charm-libraries/ Are you sure you want to create this charm library? (Y/N) Y charms.sabdfl-hello-world.v0.db created, push-lib will update Charmhub. ```

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 30
Quick Win: 22.5
Staleness: 55
Complexity: 25
Confidence: 70
Support Request: 0
keep open Enhancement request for charmcraft create-lib to print a summary of the library it will create and ask for confirmation before creating it. Triaged (labelled, synced to internal Jira ticket CHARMCRAFT-653), but no implementation yet.
qwen/qwen3.6-35b-a3b
Staleness: 70
Complexity: 20
Confidence: 85
Support Request: 0
keep open Feature request to add a confirmation prompt and preview output before creating a charm library via charmcraft. The issue is triaged and has been inactive for nearly six years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 55
Complexity: 10
Confidence: 85
Support Request: 0
keep open Enhancement to add a confirmation prompt and explanation before running charmcraft create-lib. Currently triaged but inactive for approximately nine months.
qwen3.6-35b-a3b-mtp-q6
Staleness: 65
Complexity: 15
Confidence: 80
Support Request: 0
keep open Enhancement to add a confirmation prompt and explanatory output before creating a charm library via charmcraft create-lib. Currently triaged and recently synced to Jira.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 15
Confidence: 75
Support Request: 5
close stale Add preview and confirmation prompts to charmcraft create-lib to prevent accidental library creation. Currently triaged and synced to internal ticket CHARMCRAFT-653, awaiting implementation.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.