forked from digitalocean/doctl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
APPS-9859 Add doctl apps console command to start a console session t…
…o a component (digitalocean#1612) * Add exec command * update Listener to accept inputs * move input logic to RunAppsGetExec * listen for resize events using SIGWINCH * rename exec command to console * refactor * add test * move stdin to errgroup goroutine * add ReadRawStdin to Doit * fix test * make stdinCh a `chan<- []byte` * fix keystroke drops * cleanup * add test * bump godo version * run go mod vendor * fix test * fix integration test for logs * move MonitorResizeEvents and ReadRawStdin to terminal package * make terminal mockable by making an interface * move `term.ReadRawStdin` out of errgroup to improve user experience This also removes the "Press any key to exit." prompt, which I felt was annoying. * fix error message typos
- Loading branch information
1 parent
fbf093f
commit bd65bcc
Showing
34 changed files
with
1,126 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.