Open ckipp01 opened 4 years ago
I'm not happy at all with the current output of update
, I agree it should be changed.
An easy change would be to use a different logger around here. We could enable the file-type-based one, like it's done here. It may even be possible to change that logger, so that it can optionally not keep its output on-screen once it's done. And what's printed after each check could be tweaked too.
So I didn't notice this until today because I recently cleared my cache, so the problem seemed much more exaggerated, however I wonder if it'd be possible to change the output of
cs update
to have a summary at the end rather than individual messages during the checks. For example, if all goes well and the user has all artifacts, the output is pretty readable. See below:Nice output when everything is đź‘Ť
```sh ❯ cs update https://repo1.maven.org/maven2/com/lihaoyi/ammonite_2.13.1/maven-metadata.xml No new update since 2020-01-14 04:26:58 https://repo1.maven.org/maven2/io/get-coursier/apps/maven-metadata.xml No new update since 2020-03-12 11:17:23 https://repo1.maven.org/maven2/io/get-coursier/coursier-cli_2.12/maven-metadata.xml No new update since 2020-03-20 16:01:14 https://repo1.maven.org/maven2/io/get-coursier/coursier-cli_2.12/maven-metadata.xml No new update since 2020-03-20 16:01:14 https://repo1.maven.org/maven2/org/scalameta/mdoc_2.13/maven-metadata.xml No new update since 2020-03-19 12:20:37 https://repo1.maven.org/maven2/org/scalameta/metac_2.13.1/maven-metadata.xml No new update since 2020-03-20 12:40:08 https://repo1.maven.org/maven2/org/scalameta/metac_2.13.1/maven-metadata.xml No new update since 2020-03-20 12:40:08 https://repo1.maven.org/maven2/org/scalameta/scalameta_2.13/maven-metadata.xml No new update since 2020-03-20 12:40:27 https://repo1.maven.org/maven2/org/scalameta/scalameta_2.13/maven-metadata.xml No new update since 2020-03-20 12:40:27 https://repo1.maven.org/maven2/org/scalameta/scalafmt-cli_2.13/maven-metadata.xml No new update since 2020-02-23 00:06:49 ```However, if this isn't the case and users need to download some missing artifacts, your output looks like this:
Output when there are missing artifacts
```sh ❯ cs update https://repo1.maven.org/maven2/com/lihaoyi/ammonite_2.13.1/maven-metadata.xml No new update since 2020-01-14 04:26:58 https://repo1.maven.org/maven2/com/lihaoyi/ammonite_2.13.1/maven-metadata.xml No new update since 2020-01-14 04:26:58 https://repo1.maven.org/maven2/com/lihaoyi/ammonite_2.13.1/2.0.4/ammonite_2.13.1-2.0.4.pom 100.0% [##########] 2.8 KiB (30.7 KiB / s) https://repo1.maven.org/maven2/com/lihaoyi/ammonite-interp_2.13.1/2.0.4/ammonite-interp_2.13.1-2.0.4.p… 100.0% [##########] 2.8 KiB (36.7 KiB / s) https://repo1.maven.org/maven2/com/lihaoyi/ammonite-terminal_2.13/2.0.4/ammonite-terminal_2.13-2.0.4.p… 100.0% [##########] 1.7 KiB (28.5 KiB / s) https://repo1.maven.org/maven2/com/lihaoyi/ammonite-ops_2.13/2.0.4/ammonite-ops_2.13-2.0.4.pom 100.0% [##########] 1.7 KiB (21.2 KiB / s) https://repo1.maven.org/maven2/com/lihaoyi/ammonite-repl-api_2.13.1/2.0.4/ammonite-repl-api_2.13.1-2.0… 100.0% [##########] 2.1 KiB (9.8 KiB / s) https://repo1.maven.org/maven2/com/lihaoyi/ammonite-repl_2.13.1/2.0.4/ammonite-repl_2.13.1-2.0.4.pom 100.0% [##########] 3.1 KiB (14.6 KiB / s) https://repo1.maven.org/maven2/com/lihaoyi/ammonite-runtime_2.13.1/2.0.4/ammonite-runtime_2.13.1-2.0.4… 100.0% [##########] 2.4 KiB (10.3 KiB / s) https://repo1.maven.org/maven2/com/lihaoyi/ammonite-interp-api_2.13.1/2.0.4/ammonite-interp-api_2.13.1… 100.0% [##########] 2.3 KiB (8.9 KiB / s) https://repo1.maven.org/maven2/com/lihaoyi/ammonite-util_2.13/2.0.4/ammonite-util_2.13-2.0.4.pom 100.0% [##########] 1.9 KiB (20.6 KiB / s) https://repo1.maven.org/maven2/com/lihaoyi/pprint_2.13/0.5.8/pprint_2.13-0.5.8.pom 100.0% [##########] 1.8 KiB (25.5 KiB / s) https://repo1.maven.org/maven2/com/lihaoyi/fansi_2.13/0.2.8/fansi_2.13-0.2.8.pom 100.0% [##########] 1.2 KiB (13.2 KiB / s) https://repo1.maven.org/maven2/com/lihaoyi/os-lib_2.13/0.6.3/os-lib_2.13-0.6.3.pom 100.0% [##########] 1.4 KiB (15.3 KiB / s) https://repo1.maven.org/maven2/com/lihaoyi/requests_2.13/0.5.0/requests_2.13-0.5.0.pom 100.0% [##########] 1.4 KiB (15.1 KiB / s) https://repo1.maven.org/maven2/com/lihaoyi/scalaparse_2.13/2.2.3/scalaparse_2.13-2.2.3.pom 100.0% [##########] 1.2 KiB (13.5 KiB / s) https://repo1.maven.org/maven2/com/lihaoyi/upickle_2.13/0.9.8/upickle_2.13-0.9.8.pom 100.0% [##########] 2.2 KiB (28.5 KiB / s) https://repo1.maven.org/maven2/io/get-coursier/interface/0.0.8/interface-0.0.8.pom 100.0% [##########] 1.6 KiB (17.3 KiB / s) https://repo1.maven.org/maven2/com/lihaoyi/fastparse_2.13/2.2.3/fastparse_2.13-2.2.3.pom 100.0% [##########] 1.6 KiB (16.0 KiB / s) https://repo1.maven.org/maven2/com/lihaoyi/geny_2.13/0.5.0/geny_2.13-0.5.0.pom 100.0% [##########] 1.0 KiB (10.2 KiB / s) https://repo1.maven.org/maven2/com/lihaoyi/ujson_2.13/0.9.8/ujson_2.13-0.9.8.pom 100.0% [##########] 1.2 KiB (12.1 KiB / s) https://repo1.maven.org/maven2/com/lihaoyi/upack_2.13/0.9.8/upack_2.13-0.9.8.pom 100.0% [##########] 1.2 KiB (12.2 KiB / s) https://repo1.maven.org/maven2/com/lihaoyi/upickle-implicits_2.13/0.9.8/upickle-implicits_2.13-0.9.8.p… 100.0% [##########] 1.7 KiB (16.6 KiB / s) https://repo1.maven.org/maven2/com/lihaoyi/upickle-core_2.13/0.9.8/upickle-core_2.13-0.9.8.pom 100.0% [##########] 1.4 KiB (19.6 KiB / s) https://repo1.maven.org/maven2/io/get-coursier/coursier-cli_2.12/maven-metadata.xml No new update since 2020-03-20 16:01:14 https://repo1.maven.org/maven2/io/get-coursier/coursier-cli_2.12/maven-metadata.xml No new update since 2020-03-20 16:01:14 https://repo1.maven.org/maven2/io/get-coursier/coursier-cli_2.12/2.0.0-RC6-11/coursier-cli_2.12-2.0.0-… 100.0% [##########] 4.3 KiB (48.9 KiB / s) https://repo1.maven.org/maven2/io/monadless/monadless-cats_2.12/0.0.13/monadless-cats_2.12-0.0.13.pom 100.0% [##########] 2.2 KiB (29.1 KiB / s) https://repo1.maven.org/maven2/org/typelevel/cats-core_2.12/2.1.1/cats-core_2.12-2.1.1.pom 100.0% [##########] 4.5 KiB (60.8 KiB / s) https://repo1.maven.org/maven2/com/github/alexarchambault/case-app_2.12/2.0.0-M16/case-app_2.12-2.0.0-… 100.0% [##########] 2.2 KiB (24.0 KiB / s) https://repo1.maven.org/maven2/io/get-coursier/coursier-install_2.12/2.0.0-RC6-11/coursier-install_2.1… 100.0% [##########] 3.0 KiB (32.2 KiB / s) https://repo1.maven.org/maven2/io/get-coursier/coursier-jvm_2.12/2.0.0-RC6-11/coursier-jvm_2.12-2.0.0-… 100.0% [##########] 3.6 KiB (39.2 KiB / s) https://repo1.maven.org/maven2/io/get-coursier/coursier_2.12/2.0.0-RC6-11/coursier_2.12-2.0.0-RC6-11.p… 100.0% [##########] 3.0 KiB (47.5 KiB / s) https://repo1.maven.org/maven2/io/monadless/monadless-stdlib_2.12/0.0.13/monadless-stdlib_2.12-0.0.13.… 100.0% [##########] 2.0 KiB (31.1 KiB / s) https://repo1.maven.org/maven2/io/get-coursier/coursier-publish_2.12/2.0.0-RC6-11/coursier-publish_2.1… 100.0% [##########] 2.7 KiB (35.9 KiB / s) https://repo1.maven.org/maven2/com/github/alexarchambault/case-app-util_2.12/2.0.0-M16/case-app-util_2… 100.0% [##########] 2.2 KiB (22.9 KiB / s) https://repo1.maven.org/maven2/io/monadless/monadless-core_2.12/0.0.13/monadless-core_2.12-0.0.13.pom 100.0% [##########] 2.2 KiB (22.3 KiB / s) https://repo1.maven.org/maven2/org/typelevel/cats_2.12/0.9.0/cats_2.12-0.9.0.pom 100.0% [##########] 5.1 KiB (53.0 KiB / s) https://repo1.maven.org/maven2/org/typelevel/cats-kernel_2.12/2.1.1/cats-kernel_2.12-2.1.1.pom 100.0% [##########] 3.9 KiB (28.6 KiB / s) https://repo1.maven.org/maven2/com/github/plokhotnyuk/jsoniter-scala/jsoniter-scala-core_2.12/2.1.7/js… 100.0% [##########] 2.3 KiB (22.6 KiB / s) https://repo1.maven.org/maven2/com/squareup/okhttp3/okhttp/3.13.1/okhttp-3.13.1.pom 100.0% [##########] 2.4 KiB (24.8 KiB / s) https://repo1.maven.org/maven2/io/get-coursier/coursier-core_2.12/2.0.0-RC6-11/coursier-core_2.12-2.0.… 100.0% [##########] 2.4 KiB (29.2 KiB / s) https://repo1.maven.org/maven2/org/typelevel/cats-macros_2.12/2.1.1/cats-macros_2.12-2.1.1.pom 100.0% [##########] 4.0 KiB (45.9 KiB / s) https://repo1.maven.org/maven2/com/github/alexarchambault/case-app-annotations_2.12/2.0.0-M16/case-app… 100.0% [##########] 1.6 KiB (17.0 KiB / s) https://repo1.maven.org/maven2/io/get-coursier/coursier-cache_2.12/2.0.0-RC6-11/coursier-cache_2.12-2.… 100.0% [##########] 3.5 KiB (36.7 KiB / s) https://repo1.maven.org/maven2/org/codehaus/plexus/plexus-archiver/4.2.2/plexus-archiver-4.2.2.pom 100.0% [##########] 4.3 KiB (56.1 KiB / s) https://repo1.maven.org/maven2/org/codehaus/plexus/plexus-container-default/2.1.0/plexus-container-def… 100.0% [##########] 2.9 KiB (40.8 KiB / s) https://repo1.maven.org/maven2/io/get-coursier/coursier-env_2.12/2.0.0-RC6-11/coursier-env_2.12-2.0.0-… 100.0% [##########] 2.3 KiB (9.3 KiB / s) https://repo.typesafe.com/typesafe/ivy-releases/com.lightbend/emoji_2.12/1.2.1/ivys/ivy.xml 100.0% [##########] 1.9 KiB (8.7 KiB / s) https://repo1.maven.org/maven2/org/codehaus/plexus/plexus-containers/2.1.0/plexus-containers-2.1.0.pom 100.0% [##########] 4.7 KiB (73.3 KiB / s) https://repo1.maven.org/maven2/com/squareup/okhttp3/parent/3.13.1/parent-3.13.1.pom 100.0% [##########] 19.3 KiB (222.2 KiB / s) https://repo1.maven.org/maven2/org/codehaus/plexus/plexus/6.1/plexus-6.1.pom 100.0% [##########] 23.2 KiB (185.8 KiB / s) https://repo1.maven.org/maven2/org/codehaus/plexus/plexus/5.1/plexus-5.1.pom 100.0% [##########] 22.0 KiB (297.0 KiB / s) https://repo1.maven.org/maven2/org/codehaus/plexus/plexus-io/3.2.0/plexus-io-3.2.0.pom 100.0% [##########] 4.4 KiB (43.1 KiB / s) https://repo1.maven.org/maven2/org/iq80/snappy/snappy/0.4/snappy-0.4.pom 100.0% [##########] 14.2 KiB (125.6 KiB / s) https://repo1.maven.org/maven2/org/scala-lang/modules/scala-xml_2.12/1.3.0/scala-xml_2.12-1.3.0.pom 100.0% [##########] 2.8 KiB (20.6 KiB / s) https://repo1.maven.org/maven2/org/typelevel/cats-free_2.12/0.9.0/cats-free_2.12-0.9.0.pom 100.0% [##########] 4.3 KiB (31.4 KiB / s) https://repo1.maven.org/maven2/org/typelevel/cats-jvm_2.12/0.9.0/cats-jvm_2.12-0.9.0.pom 100.0% [##########] 4.3 KiB (31.3 KiB / s) https://repo1.maven.org/maven2/org/codehaus/plexus/plexus-classworlds/2.6.0/plexus-classworlds-2.6.0.p… 100.0% [##########] 7.7 KiB (95.4 KiB / s) https://repo1.maven.org/maven2/org/tukaani/xz/1.8/xz-1.8.pom 100.0% [##########] 1.9 KiB (26.2 KiB / s) https://repo1.maven.org/maven2/org/typelevel/cats-laws_2.12/0.9.0/cats-laws_2.12-0.9.0.pom 100.0% [##########] 5.6 KiB (74.3 KiB / s) https://repo1.maven.org/maven2/com/github/mpilquist/simulacrum_2.12/0.10.0/simulacrum_2.12-0.10.0.pom 100.0% [##########] 2.0 KiB (21.3 KiB / s) https://repo1.maven.org/maven2/org/apache/commons/commons-compress/1.20/commons-compress-1.20.pom 100.0% [##########] 17.8 KiB (183.9 KiB / s) https://repo1.maven.org/maven2/org/apache/xbean/xbean-reflect/3.7/xbean-reflect-3.7.pom 100.0% [##########] 5.0 KiB (77.7 KiB / s) https://repo1.maven.org/maven2/org/typelevel/machinist_2.12/0.6.1/machinist_2.12-0.6.1.pom 100.0% [##########] 1.7 KiB (21.7 KiB / s) https://repo1.maven.org/maven2/io/get-coursier/coursier-util_2.12/2.0.0-RC6-11/coursier-util_2.12-2.0.… 100.0% [##########] 1.9 KiB (22.9 KiB / s) https://repo1.maven.org/maven2/io/github/alexarchambault/windows-ansi/windows-ansi/0.0.3/windows-ansi-… 100.0% [##########] 1.9 KiB (21.1 KiB / s) https://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/3.3.0/plexus-utils-3.3.0.pom 100.0% [##########] 5.1 KiB (63.3 KiB / s) https://repo1.maven.org/maven2/org/typelevel/cats-kernel-laws_2.12/0.9.0/cats-kernel-laws_2.12-0.9.0.p… 100.0% [##########] 4.7 KiB (65.5 KiB / s) https://repo1.maven.org/maven2/org/scalamacros/resetallattrs_2.12/1.0.0/resetallattrs_2.12-1.0.0.pom 100.0% [##########] 1.9 KiB (25.5 KiB / s) https://repo1.maven.org/maven2/com/google/collections/google-collections/1.0/google-collections-1.0.pom 100.0% [##########] 2.4 KiB (34.6 KiB / s) https://repo1.maven.org/maven2/com/google/google/1/google-1.pom 100.0% [##########] 1.5 KiB (17.2 KiB / s) https://repo1.maven.org/maven2/org/apache/xbean/xbean/3.7/xbean-3.7.pom 100.0% [##########] 15.1 KiB (171.3 KiB / s) https://repo1.maven.org/maven2/org/apache/commons/commons-parent/48/commons-parent-48.pom 100.0% [##########] 70.3 KiB (478.5 KiB / s) https://repo1.maven.org/maven2/org/apache/geronimo/genesis/genesis-java5-flava/2.0/genesis-java5-flava… 100.0% [##########] 5.4 KiB (83.7 KiB / s) https://repo1.maven.org/maven2/org/apache/geronimo/genesis/genesis-default-flava/2.0/genesis-default-f… 100.0% [##########] 17.4 KiB (172.2 KiB / s) https://repo1.maven.org/maven2/org/apache/geronimo/genesis/genesis/2.0/genesis-2.0.pom 100.0% [##########] 18.0 KiB (253.3 KiB / s) https://repo1.maven.org/maven2/org/apache/apache/6/apache-6.pom 100.0% [##########] 12.5 KiB (154.3 KiB / s) https://repo1.maven.org/maven2/org/fusesource/jansi/jansi/1.18/jansi-1.18.pom 100.0% [##########] 3.7 KiB (56.9 KiB / s) https://repo1.maven.org/maven2/org/scalacheck/scalacheck_2.12/1.13.4/scalacheck_2.12-1.13.4.pom 100.0% [##########] 1.6 KiB (23.9 KiB / s) https://repo1.maven.org/maven2/org/typelevel/catalysts-platform_2.12/0.0.5/catalysts-platform_2.12-0.0… 100.0% [##########] 1.8 KiB (26.9 KiB / s) https://repo1.maven.org/maven2/commons-io/commons-io/2.6/commons-io-2.6.pom 100.0% [##########] 13.9 KiB (163.8 KiB / s) https://repo1.maven.org/maven2/org/typelevel/discipline_2.12/0.7.2/discipline_2.12-0.7.2.pom 100.0% [##########] 2.2 KiB (25.8 KiB / s) https://repo1.maven.org/maven2/org/fusesource/jansi/jansi-project/1.18/jansi-project-1.18.pom 100.0% [##########] 10.2 KiB (139.8 KiB / s) https://repo1.maven.org/maven2/io/get-coursier/apps/maven-metadata.xml No new update since 2020-03-12 11:17:23 https://repo1.maven.org/maven2/io/get-coursier/coursier-cli_2.12/maven-metadata.xml No new update since 2020-03-20 16:01:14 https://repo1.maven.org/maven2/org/scalameta/mdoc_2.13/maven-metadata.xml No new update since 2020-03-19 12:20:37 https://repo1.maven.org/maven2/org/scalameta/metac_2.13.1/maven-metadata.xml No new update since 2020-03-20 12:40:08 https://repo1.maven.org/maven2/org/scalameta/metac_2.13.1/maven-metadata.xml No new update since 2020-03-20 12:40:08 https://repo1.maven.org/maven2/org/scalameta/metac_2.13.1/4.3.7/metac_2.13.1-4.3.7.jar 100.0% [##########] 9.2 KiB (151.1 KiB / s) https://repo1.maven.org/maven2/org/scala-lang/scala-compiler/maven-metadata.xml 100.0% [##########] 6.6 KiB (104.8 KiB / s) https://repo1.maven.org/maven2/org/scalameta/scalafmt-cli_2.13/maven-metadata.xml No new update since 2020-02-23 00:06:49 https://repo1.maven.org/maven2/org/scalameta/scalafmt-cli_2.13/maven-metadata.xml No new update since 2020-02-23 00:06:49 https://repo1.maven.org/maven2/org/scalameta/scalafmt-cli_2.13/2.4.2/scalafmt-cli_2.13-2.4.2.pom 100.0% [##########] 3.5 KiB (42.7 KiB / s) https://repo1.maven.org/maven2/org/scalameta/scalafmt-dynamic_2.13/2.4.2/scalafmt-dynamic_2.13-2.4.2.p… 100.0% [##########] 2.7 KiB (41.5 KiB / s) https://repo1.maven.org/maven2/org/scalameta/scalafmt-core_2.13/2.4.2/scalafmt-core_2.13-2.4.2.pom 100.0% [##########] 3.1 KiB (12.5 KiB / s) https://repo1.maven.org/maven2/org/scalameta/scalafmt-dynamic_2.13/2.4.2/scalafmt-dynamic_2.13-2.4.2.j… 100.0% [##########] 133.7 KiB (707.3 KiB / s) https://repo1.maven.org/maven2/org/scalameta/scalafmt-cli_2.13/2.4.2/scalafmt-cli_2.13-2.4.2.jar 100.0% [##########] 164.5 KiB (604.6 KiB / s) https://repo1.maven.org/maven2/org/scalameta/scalafmt-core_2.13/2.4.2/scalafmt-core_2.13-2.4.2.jar 100.0% [##########] 1.1 MiB (1.1 MiB / s) ```So it's a bit difficult to see what actually got updated or what was already up to date. Would it be possible to instead have a nice summary at the end that lets the user know A,B,C got updated and D,E were up to date or something like that?