juju env could be friendlier to scripts

Bug #1193244 reported by Stuart Bishop
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
High
Frank Mueller

Bug Description

The 'juju env' and 'juju switch' commands output annotated, human readable text:

    Current environment: "fooenv"

I suspect it would be just as readable and more friendly to scripting if just the raw environment name was emitted.

Tags: improvement

Related branches

Mark Ramm (mark-ramm)
Changed in juju-core:
importance: Undecided → Wishlist
status: New → Confirmed
milestone: none → 2.0
assignee: nobody → Frank Mueller (themue)
Curtis Hovey (sinzui)
Changed in juju-core:
status: Confirmed → Triaged
Curtis Hovey (sinzui)
Changed in juju-core:
importance: Wishlist → High
tags: added: improvement
Frank Mueller (themue)
Changed in juju-core:
status: Triaged → In Progress
Revision history for this message
Frank Mueller (themue) wrote :

Two different solutions:

1. simply always print 'fooenv' instead of 'Current environment: "fooenv"' or

2. add an argument (e.g. -r / --raw) so that the output stay as it is but with the argument the raw env name is printed.

I would prefer the second solution. So it stays user oriented an consistent with the -l / --list option for the listing of environment.

Revision history for this message
Frank Mueller (themue) wrote :

Agreed on -r / --raw with frankban on IRC.

Revision history for this message
Frank Mueller (themue) wrote :

After discussion in the proposal and agreement with frankban changing it to be raw by default.

Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 2.0 → 1.17.0
Frank Mueller (themue)
Changed in juju-core:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in juju-core:
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.