[Bug 1570657] Re: Bash completion needed for versioned juju commands

2016-10-20 Thread David Coronel
I have the same problem:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:Ubuntu 16.04.1 LTS
Release:16.04
Codename:   xenial

$ dpkg -l | egrep 'juju|bash'
ii  bash   4.3-14ubuntu1.1 
amd64GNU Bourne Again SHell
ii  bash-completion1:2.1-4.2ubuntu1.1  all  
programmable completion for the bash shell
ii  command-not-found  0.3ubuntu16.04.2all  
Suggest installation of packages in interactive bash sessions
ii  juju   2.0~beta15-0ubuntu2.16.04.1 all  
next generation service orchestration system
ii  juju-2.0   2.0~beta15-0ubuntu2.16.04.1 
amd64Juju is devops distilled - client

$ juju  _juju_complete_2_0: command
not found


I followed the workaround in https://github.com/juju/juju/pull/5057/files and 
copied the file juju-2.0 from that URL in my /etc/bash_completion.d/ directory 
and now it works:

$ juju st 
status  status-history  storage storage-pools   
$ juju status

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1570657

Title:
  Bash completion needed for versioned juju commands

To manage notifications about this bug go to:
https://bugs.launchpad.net/juju/+bug/1570657/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1570657] Re: Bash completion needed for versioned juju commands

2016-08-23 Thread Canonical Juju QA Bot
** Changed in: juju-core
   Status: New => Won't Fix

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1570657

Title:
  Bash completion needed for versioned juju commands

To manage notifications about this bug go to:
https://bugs.launchpad.net/juju/+bug/1570657/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1570657] Re: Bash completion needed for versioned juju commands

2016-08-22 Thread Canonical Juju QA Bot
** Project changed: juju-core => juju

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1570657

Title:
  Bash completion needed for versioned juju commands

To manage notifications about this bug go to:
https://bugs.launchpad.net/juju/+bug/1570657/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1570657] Re: Bash completion needed for versioned juju commands

2016-08-11 Thread Curtis Hovey
** Changed in: juju-core
   Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1570657

Title:
  Bash completion needed for versioned juju commands

To manage notifications about this bug go to:
https://bugs.launchpad.net/juju-core/+bug/1570657/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1570657] Re: Bash completion needed for versioned juju commands

2016-08-09 Thread Anastasia
** Changed in: juju-core/1.25
   Importance: High => Undecided

** Changed in: juju-core/1.25
Milestone: 1.25.7 => None

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1570657

Title:
  Bash completion needed for versioned juju commands

To manage notifications about this bug go to:
https://bugs.launchpad.net/juju-core/+bug/1570657/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1570657] Re: Bash completion needed for versioned juju commands

2016-08-05 Thread Anastasia
PR mentioned in comment 1 is merged.

** Changed in: juju-core/1.25
   Status: Triaged => Won't Fix

** Changed in: juju-core
   Status: Triaged => Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1570657

Title:
  Bash completion needed for versioned juju commands

To manage notifications about this bug go to:
https://bugs.launchpad.net/juju-core/+bug/1570657/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1570657] Re: Bash completion needed for versioned juju commands

2016-08-04 Thread Curtis Hovey
** Changed in: juju-core
Milestone: 2.0-beta14 => 2.0-beta15

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1570657

Title:
  Bash completion needed for versioned juju commands

To manage notifications about this bug go to:
https://bugs.launchpad.net/juju-core/+bug/1570657/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1570657] Re: Bash completion needed for versioned juju commands

2016-07-22 Thread Curtis Hovey
** Changed in: juju-core
Milestone: 2.0-beta13 => 2.0-beta14

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1570657

Title:
  Bash completion needed for versioned juju commands

To manage notifications about this bug go to:
https://bugs.launchpad.net/juju-core/+bug/1570657/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1570657] Re: Bash completion needed for versioned juju commands

2016-07-14 Thread Curtis Hovey
** Changed in: juju-core/1.25
Milestone: 1.25.6 => 1.25.7

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1570657

Title:
  Bash completion needed for versioned juju commands

To manage notifications about this bug go to:
https://bugs.launchpad.net/juju-core/+bug/1570657/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1570657] Re: Bash completion needed for versioned juju commands

2016-07-01 Thread Cheryl Jennings
** Changed in: juju-core
Milestone: 2.0-beta12 => 2.0-beta13

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1570657

Title:
  Bash completion needed for versioned juju commands

To manage notifications about this bug go to:
https://bugs.launchpad.net/juju-core/+bug/1570657/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1570657] Re: Bash completion needed for versioned juju commands

2016-07-01 Thread Curtis Hovey
** Changed in: juju-core
Milestone: 2.0-beta11 => 2.0-beta12

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1570657

Title:
  Bash completion needed for versioned juju commands

To manage notifications about this bug go to:
https://bugs.launchpad.net/juju-core/+bug/1570657/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1570657] Re: Bash completion needed for versioned juju commands

2016-06-24 Thread Curtis Hovey
** Changed in: juju-core
Milestone: 2.0-beta10 => 2.0-beta11

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1570657

Title:
  Bash completion needed for versioned juju commands

To manage notifications about this bug go to:
https://bugs.launchpad.net/juju-core/+bug/1570657/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1570657] Re: Bash completion needed for versioned juju commands

2016-06-20 Thread JuanJo Ciarlante
See https://bugs.launchpad.net/juju-core/+bug/1588403/comments/5

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1570657

Title:
  Bash completion needed for versioned juju commands

To manage notifications about this bug go to:
https://bugs.launchpad.net/juju-core/+bug/1570657/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1570657] Re: Bash completion needed for versioned juju commands

2016-06-20 Thread JuanJo Ciarlante
See updated https://github.com/juju/juju/pull/5057, in short
it adds below two files to /etc/bash_completion.d/
(sort == load order) ->

juju-2.0 (added)
juju-core(existing from juju1)
juju-version (added)

, so that:

* juju-2.0: completion for `juju-2.0`
, but also plain `juju` (ie self-contained)
* juju-core: overwrites completion for `juju`
* juju-version: overwrites completion for `juju`
, with runtime logic to use v1 xor v2.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1570657

Title:
  Bash completion needed for versioned juju commands

To manage notifications about this bug go to:
https://bugs.launchpad.net/juju-core/+bug/1570657/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1570657] Re: Bash completion needed for versioned juju commands

2016-06-16 Thread Curtis Hovey
** Changed in: juju-core
Milestone: 2.0-beta9 => 2.0-beta10

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1570657

Title:
  Bash completion needed for versioned juju commands

To manage notifications about this bug go to:
https://bugs.launchpad.net/juju-core/+bug/1570657/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1570657] Re: Bash completion needed for versioned juju commands

2016-06-03 Thread Curtis Hovey
** Changed in: juju-core
Milestone: 2.0-beta8 => 2.0-beta9

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1570657

Title:
  Bash completion needed for versioned juju commands

To manage notifications about this bug go to:
https://bugs.launchpad.net/juju-core/+bug/1570657/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1570657] Re: Bash completion needed for versioned juju commands

2016-06-02 Thread Martin Packman
** Tags added: bash-completion

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1570657

Title:
  Bash completion needed for versioned juju commands

To manage notifications about this bug go to:
https://bugs.launchpad.net/juju-core/+bug/1570657/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1570657] Re: Bash completion needed for versioned juju commands

2016-05-13 Thread Curtis Hovey
** Changed in: juju-core
Milestone: 2.0-beta7 => 2.0-beta8

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1570657

Title:
  Bash completion needed for versioned juju commands

To manage notifications about this bug go to:
https://bugs.launchpad.net/juju-core/+bug/1570657/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1570657] Re: Bash completion needed for versioned juju commands

2016-04-29 Thread Martin Packman
** Tags added: landscape

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1570657

Title:
  Bash completion needed for versioned juju commands

To manage notifications about this bug go to:
https://bugs.launchpad.net/juju-core/+bug/1570657/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1570657] Re: Bash completion needed for versioned juju commands

2016-04-29 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: juju-core (Ubuntu)
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1570657

Title:
  Bash completion needed for versioned juju commands

To manage notifications about this bug go to:
https://bugs.launchpad.net/juju-core/+bug/1570657/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1570657] Re: Bash completion needed for versioned juju commands

2016-04-25 Thread Curtis Hovey
** Changed in: juju-core
Milestone: 2.0-beta6 => 2.0-beta7

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1570657

Title:
  Bash completion needed for versioned juju commands

To manage notifications about this bug go to:
https://bugs.launchpad.net/juju-core/+bug/1570657/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1570657] Re: Bash completion needed for versioned juju commands

2016-04-20 Thread Curtis Hovey
** Changed in: juju-core
Milestone: 2.0-beta5 => 2.0-rc1

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1570657

Title:
  Bash completion needed for versioned juju commands

To manage notifications about this bug go to:
https://bugs.launchpad.net/juju-core/+bug/1570657/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1570657] Re: Bash completion needed for versioned juju commands

2016-04-14 Thread Martin Packman
There's a pending pull request for other 2.0 improvements to the bash
completion script here:



-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1570657

Title:
  Bash completion needed for versioned juju commands

To manage notifications about this bug go to:
https://bugs.launchpad.net/juju-core/+bug/1570657/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs