You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here the data object would need to be something that can (at minimum) be used by tabulate and be serialised into JSON. With those two formats, we'd likely get the ability to do other formats (e.g. YAML, toml) if we decide to add that in the future.
Why it needs to get done
This got added to the names command in snapcraft recently: canonical/snapcraft#4778
Charmcraft has a partial implementation, but still relies on the command itself being aware of each format.
The text was updated successfully, but these errors were encountered:
What needs to get done
Add utilities of some form to make it easy for commands to add a unified
format
option for various tabular command outputs.Ideally a command's
fill_parser
method would be able to do something like:and then we'd have a related function that actually emits the formatted message, something like:
Here the
data
object would need to be something that can (at minimum) be used by tabulate and be serialised into JSON. With those two formats, we'd likely get the ability to do other formats (e.g. YAML, toml) if we decide to add that in the future.Why it needs to get done
This got added to the
names
command in snapcraft recently: canonical/snapcraft#4778Charmcraft has a partial implementation, but still relies on the command itself being aware of each format.
The text was updated successfully, but these errors were encountered: