Commit Graph

26 Commits

Author SHA1 Message Date
Nicolas De Loof 39e4107e12
attach to log stream by default on `up`
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-12-03 16:51:00 +01:00
Djordje Lukic 2f09b634cc Implement `docker compose pull`
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
2020-12-03 16:14:38 +01:00
Ulysses Souza 7e4cfc0e3b Add order to down command
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2020-12-02 13:51:11 +01:00
Guillame Tardif fd54682109 Display “Creating”, not “Creating...”
Signed-off-by: Guillame Tardif <guillaume.tardif@gmail.com>
2020-11-27 18:21:22 +01:00
Guillame Tardif 4d1f265c62 Adding error progress indication when errors
Signed-off-by: Guillame Tardif <guillaume.tardif@gmail.com>
2020-11-27 18:18:14 +01:00
Guillame Tardif 7ddd8e5e97 Helper methods to create progress events, more homogeneous display for “creating”, “Created”, …
Signed-off-by: Guillame Tardif <guillaume.tardif@gmail.com>
2020-11-27 17:55:36 +01:00
Guillaume Tardif f997d7a128 Avoid panic in some weird cases (debug in VSCode for example)
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-11-25 18:07:22 +01:00
Djordje Lukic be40bdb032 Remove useless Done in the progress writer
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
2020-11-22 17:30:28 +01:00
Sarath Kumar Sivan f1badf0da8 Fix typo in comments against Event struct definition inside writer.go
Signed-off-by: Sarath Kumar Sivan <sarathkumarsivan@gmail.com>
2020-10-25 20:09:18 -07:00
aiordache 4add3a1662 Remove status truncate from wait and calculate max length in the progress writer based on the terminal width
Signed-off-by: aiordache <anca.iordache@docker.com>
2020-10-20 16:18:08 +02:00
Guillaume Tardif 7e534153f3 Avoid nil panic when no progress writer in context, add noop writer. (Especially for gRPC invocations)
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-09-24 10:16:03 +02:00
Chris Crone d154c41586 Update copyright
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2020-09-22 12:13:00 +02:00
Guillaume Tardif 267b267201 Progress functions can return a string, that can be used in the caller of progress.Run to display final result after progress display
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-09-14 14:29:03 +02:00
Chris Crone 4c6280b0e9 Rename docker/api -> docker/compose-cli
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2020-08-21 17:28:39 +02:00
Guillaume Tardif f442eafe0b Validate run restart option value. Default value is “none”, instead of “no”, this is more in line with compose values, and changes only the default so should not have too much impact on legacy usage. 2020-08-04 17:11:21 +02:00
Chris Crone 3ba70a27c6 formatter,multierror,progress: Move to gotest.tools
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2020-08-04 13:53:54 +02:00
Christopher Crone 50d932195d progress: Rename variable to clarify logic
Signed-off-by: Christopher Crone <christopher.crone@docker.com>
2020-07-06 14:03:48 +02:00
Christopher Crone fac4c60077 progress: Add test for error event
Signed-off-by: Christopher Crone <christopher.crone@docker.com>
2020-07-06 13:52:36 +02:00
Christopher Crone 9cc04472fb progress: Stop event on error
Ensures that we set an `endTime` when an error event is published.

Signed-off-by: Christopher Crone <christopher.crone@docker.com>
2020-07-06 13:26:39 +02:00
Djordje Lukic 34d76bd561
Merge pull request #243 from docker/chore-license
Add license headers
2020-06-19 01:16:21 -07:00
Djordje Lukic ad72c866cc Add license headers 2020-06-18 16:48:03 +02:00
Djordje Lukic cee5b697bb Simpler progress on windows
* no colors
* no braille spinner
2020-06-18 14:16:14 +02:00
Djordje Lukic a1bb04ebe1 Refactor calling the progress writer to make it easier 2020-06-18 12:10:36 +02:00
Djordje Lukic b55267739a Azure backend reports progress 2020-06-18 11:01:33 +02:00
Djordje Lukic fe47237767 Add functions to add the writer in the context 2020-06-18 11:01:00 +02:00
Djordje Lukic d0e48a25aa Implement a progress writer 2020-06-18 11:01:00 +02:00