Skip to content

Commit

Permalink
create: Deprecate the charm create command
Browse files Browse the repository at this point in the history
The charm-tools exist for building and maintenance of already
existing reactive charms.

For anyone creating new charms the ops framework should be used.
  • Loading branch information
fnordahl committed Oct 9, 2022
1 parent 334cbea commit c597eb6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions charmtools/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,14 @@ def main():
level=logging.INFO,
)

log.warning('The `charm create` command is DEPRECATED and will be\n'
'removed in the 3.1 release of charm-tools.\n'
'\n'
'Please refer to the following resources for\n'
'information on creating new charms:\n'
'https://juju.is/docs/sdk/charmcraft-init\n'
'https://juju.is/docs/sdk/ops\n')

if not args.template:
log.info(
"Using default charm template (%s). To select a different "
Expand Down
2 changes: 1 addition & 1 deletion helpers/snap-wrappers/charm
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ tools for building reactive charms
commands:
build - build a charm from layers and interfaces.
create - create a new charm.
create - (DEPRECATED) create a new charm.
help - Show help on a command or other topic.
layers - inspect the layers of a built charm.
proof - perform static analysis on a charm or bundle.
Expand Down

0 comments on commit c597eb6

Please sign in to comment.