← 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
2020-11-15 14:33:00+00:00
Updated
2025-09-17 19:48:16+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

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

No evaluation history available.