← Back to issue list

Add `charmcraft fmt` command

View original Github issue

Metadata

Project
charmcraft
Number
#913
Type
issue
State
open
Author
sed-i
Labels
Created
2022-10-24 06:37:41+00:00
Updated
2025-08-15 15:18:30+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

It could be handy if charmcraft had an `fmt` command to apply a set of opinionated formatting choices. For example: - Sort metadata.yaml sections in a particular order, e.g. name - assumes - summary - description - ... - One line gap between each main section and no gaps anywhere else - actions.yaml and config.yaml entries sorted alphabetically - charmcraft.yaml: bases before parts; parts sorted by order of business. - etc.

Evaluation history

No evaluation history available.