-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Conversation
Running this (on Ubuntu 18.04, in a Terminal), I see:
then on :
The non-interactive |
89e3740
to
ce4b115
Compare
@squaremo I knew there was something left to do.. fixed. |
We don't currently build windows binaries for Judging by the imports, I would expect the interactive stuff here to only work for linux; can you add a shim specific to Windows that at least says something like "Sorry, this doesn't work in Windows yet". |
This doesn't build for windows (try adding I think you'll have to funnel the interactive bit through an OS-specific file, and make the windows one return an apologetic error. |
On the UI itself, it is goodly simple and I like it. It was not obvious to me what was going on to start off with, because my first attempt had only one change. But the instructions are clear enough (maybe you could mention arrow keys too). Is there a nice right-pointing arrow glyph, since we're glyphing? There's some glitching:
(the columns don't line up, and The "STATUS" column is a bit out of place -- what does "success" mean here? (I realise this is inherited from the dry run output, where it is also a bit odd). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works rather neatly.
The code looks fine to me -- I am a bit dubious of driving the result output and the menu through the same code, but I see why you've done it that way.
So, two changes before we can merge this:
- fix up glitches (per the comment above)
- put in a shim for Windows
5a0d706
to
fd41ce7
Compare
I tried making it run in Windows but it needs a bit more work to read a single char cross-platform. existing libraries attempt to capture the whole terminal space by clearing it which i would rather not have.
doing so now 👍
⇒
tabwriter didn't like the escape sequences.
|
OK, ignore this one, it's not critical. (We can revisit how the results are shown, some other time) |
@squaremo made the changes, PTAL |
This adds an `--interactive` option to the `release` command that lets you pick and choose which containers to update. It uses the new `containers` specification in the /v9/update-manifest call. Once the containers are selected, the release is sent off with the constraint that the state of the containers need to be the exact same as when the results were presented to the user. If anything changed in the meanwhile, the whole release will not be processed.
2b8f0a0
to
13b7c07
Compare
This adds an
--interactive
option to therelease
command that letsyou pick and choose which containers to update. It uses the new
containers
specification in the /v9/update-manifest call.Once the containers are selected, the release is sent off with
the constraint that the state of the containers need to be the exact
same as when the results were presented to the user. If anything changed
in the meanwhile, the whole release will not be processed.
Closes #1227