Skip to content

Colorize URLs in opam info output #4565

@aantron

Description

@aantron

For example, the following is only part of the output of one info command — and it fills most of my terminal window. It would save a bit of frustration if some of the human-oriented links (homepage, bug-reports) were colored, say, blue, as they can be difficult to pick out when working quickly. Some of the other output is already colored, so this shouldn't be much trouble.

I also noticed that there is no output corresponding to the doc field, which seems pretty important. I suppose I should open a separate issue about that.

$ opam info bisect_ppx
[SNIP]
<><> Version-specific details <><><><><><><><><><><><><><><><><><><><><><><><><>
version       2.6.0
repository    default
url.src:      "https://github.com/aantron/bisect_ppx/archive/2.6.0.tar.gz"
url.checksum: "md5=1e87162003525cd853631dae5b4aea66"
homepage:     "https://github.com/aantron/bisect_ppx"
bug-reports:  "https://github.com/aantron/bisect_ppx/issues"
dev-repo:     "git+https://github.com/aantron/bisect_ppx.git"
authors:      "Xavier Clerc <bisect@x9c.fr>"
              "Leonid Rozenberg <leonidr@gmail.com>"
              "Anton Bachin <antonbachin@yahoo.com>"
maintainer:   "Anton Bachin <antonbachin@yahoo.com>" "Leonid Rozenberg
              <leonidr@gmail.com>"
license:      "MIT"
depends:      "base-unix"
              "cmdliner" {>= "1.0.0"}
              "dune" {>= "2.7.0"}
              "ocaml" {>= "4.02.0"}
              "ppxlib" {>= "0.21.0"}
              "ocamlformat" {with-test & = "0.16.0"}
synopsis      Code coverage for OCaml
description
          Bisect_ppx helps you test thoroughly. It is a small preprocessor
          that inserts instrumentation at places in your code, such as
          if-then-else and
          match expressions. After you run tests, Bisect_ppx gives a nice HTML
          report
          showing which places were visited and which were missed.
          Usage is simple - add package bisect_ppx when building tests, run your
          tests,
          then run the Bisect_ppx report tool on the generated visitation files.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions