<div dir="ltr">Ha, that's cute. Honestly, that's still difficult enough to type that I can't see people typing that every time by hand. Generally you *know* what environment you want to destroy anyway, and whatever name you picked has to be easier than typing $(juju env). But it's a useful tip for scripts. There's basically no way to totally prevent people from shooting themselves in the foot if they work at it... but we can at least start them with the barrel of the gun pointing downrange.</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Jun 7, 2014 at 12:13 AM, John Meinel <span dir="ltr"><<a href="mailto:john@arbash-meinel.com" target="_blank">john@arbash-meinel.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>...</div><div class=""><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
> Do the following use cases express your needs (even if you weren't<br>
> hitherto aware that you were specifically manipulating environment<br>
> *connections*)?<br>
<br>
</div>Ah, ok, things are changing, got it. Making sure patterns like the<br>
following are still easily grok-able (even if it's a different command)<br>
is nice:<br>
<br>
juju destroy-environment $(juju env)<br>
<br>
Juju env used to print a lot of decoration around the environment name,<br></blockquote><div><br></div></div><div>As a side note, I love how the explicit request to us was "juju destroy environment is too easy to destroy the wrong thing, can you please make it so that you have to type the explicit name so we know we are destroying the right thing", and people quickly figured out how to write a command that destroys whatever the current environment is to workaround the exact syntax we put in place to protect it.</div>
<div><br></div><div>Nothing to do with you specifically, just that people's use cases are different. I certainly hope we never document "juju destroy-environment $(juju env)" as a recommended thing. But it does signal that some people really don't want the extra safety measures and would much rather have a clean way of disabling them.</div>
<div><br></div><div>John</div><div>=:-></div><div><br></div></div></div></div>
<br>--<br>
Juju-dev mailing list<br>
<a href="mailto:Juju-dev@lists.ubuntu.com">Juju-dev@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/juju-dev" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju-dev</a><br>
<br></blockquote></div><br></div>