Comment 5 for bug 1762069

Revision history for this message
James Troup (elmo) wrote : Re: [Bug 1762069] [NEW] charms should be able to expose version information about themselves (e.g. in juju status)

Tim Penhey <email address hidden> writes:

> It seems like this is something to add to the metadata.yaml aspect
> for charms.
>
> It would be relatively easy to add to that, but the question becomes
> where we show this.
>
> Adding to juju status --format=yaml would be easy, but we have less
> space in the tabular format for status. Would you expect to see it
> there too?

My primary concern is that it's available in the JSON/YAML but having
it in tabular would be a nice bonus, but I agree that we're running
out of space. Looking at a random cloud¹, I see a couple of options:

 1) extend the Rev column to be either $CHARM_VERSION-$REV or
    $CHARM_VERSION/$REV, falling back to just $REV (as it is now) if
    no $CHARM_VERSION is specified.

    (This is obviously not backwardly compatible, but then I don't
     think people should expect backward compatible from tabular
     format.)

 2) What is 'Notes'? In any event, either put it before or instead of
    'Notes'.

But as I said, if neither of these appeal, I'm fine with it just being
in the JSON/YAML status.

Thanks.

--
James

¹ https://pastebin.canonical.com/p/XBWDvGXnpN/