the snap command has no autocompletion

Bug #1566604 reported by Leo Arias
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Snappy
Medium
Unassigned

Bug Description

go-flags supports bash auto-completion: https://godoc.org/github.com/jessevdk/go-flags#hdr-Completion

The snappy command is using it: https://github.com/ubuntu-core/snappy/tree/master/data/completion
The snap command should be using it too.

Michael Vogt (mvo)
Changed in snappy:
status: New → Triaged
importance: Undecided → Medium
milestone: none → sru-2
Revision history for this message
Robert Ancell (robert-ancell) wrote :

Not sure if this is related but the completion doesn't resolve .snap files.

i.e.

$ snap install <tab>

doesn't list the .snap files in the current directory

Revision history for this message
Or Schiro (orschiro) wrote :

Dear all,

I just came across the same problem that a manually built snap file was not being auto-completed in my attempt to install it with `snap install`.

The related discussion can be found here: https://askubuntu.com/questions/795253/how-can-i-enable-auto-completion-for-the-snap-command/795412#795412

Thankfully,

~Robert

Revision history for this message
Leo Arias (elopio) wrote :

I opened this bug for autocompletion of the commands, which is working now.

Thomi has just opened one for completion in install for the local files: https://bugs.launchpad.net/snappy/+bug/1600083

Chris had opened one for completion in install for remote snaps:
https://bugs.launchpad.net/snappy/+bug/1400802

So I'm going to close this one, and we can follow the missing work in the other two.

Changed in snappy:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers