snapcraft should have a 'version' command

Bug #1590349 reported by Mark Shuttleworth
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
Wishlist
Gustavo Silva

Bug Description

'snapcraft version' should produce the same output as 'snapcraft --version'

Tags: bitesize ui
Revision history for this message
Oliver Grawert (ogra) wrote :

based on the current command structure of the snapcraft command i would actually expect "snapcraft version" to refer to the package i create ... reading snapcraft.yaml's version field and printing it or some such.

all other non -- snapcraft options are commands referring to the snap and snap build process.

OTOH --version in my head acts as option to the snapcraft command itself and here i would expect the snapcraft version ...

Revision history for this message
Mark Shuttleworth (sabdfl) wrote : Re: [Bug 1590349] Re: snapcraft should have a 'version' command

I do take your point Ogra, but I think the snapcraft.yaml has the
version and people will look there. I just find myself typing 'snapcraft
version' often and feeling like I stubbed my toe on a sharp thing we
could polish. Anybody else agree?

Revision history for this message
Emanuele Antonio Faraone (emanueleant03) wrote :

I agree

Revision history for this message
Mark Shuttleworth (sabdfl) wrote :

OK, let's make it so :)

 status: confirmed

Mark

Changed in snapcraft:
status: New → Confirmed
Revision history for this message
Sergio Schvezov (sergiusens) wrote :

El 09/06/16 a las 05:06, Mark Shuttleworth escribió:
> OK, let's make it so :)

I am more on the same boat as ogra on this. I do see `lxc` has a `version` command and that might be why this became a thing; we all use lxc, right? ;-)

That said, if popular demand dicates, we shall do it.

Revision history for this message
Mark Shuttleworth (sabdfl) wrote :

On 09/06/16 20:34, Sergio Schvezov wrote:
> I do see `lxc` has a `version` command and that might be why this
> became a thing; we all use lxc, right? ;-)

'juju version' ... :)

Changed in snapcraft:
status: Confirmed → Triaged
Leo Arias (elopio)
tags: added: bitesize ui
Gustavo Silva (gsilvapt)
Changed in snapcraft:
assignee: nobody → Gustavo Silva (gsilvapt)
Gustavo Silva (gsilvapt)
Changed in snapcraft:
status: Triaged → Fix Committed
Revision history for this message
Gustavo Silva (gsilvapt) wrote :
Revision history for this message
Sergio Schvezov (sergiusens) wrote :

this PR is still under review, changing the status back to In Progress

Changed in snapcraft:
status: Fix Committed → In Progress
Changed in snapcraft:
status: In Progress → Fix Committed
Revision history for this message
Gustavo Silva (gsilvapt) wrote :

Having it being merged into the master branch and being added to version 2.40, should the status be changed to Fix Released?

Changed in snapcraft:
importance: Undecided → Wishlist
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.