What versions of elm packages are installed?

elm-packagecan manage dependencies for the elm, but only his commands (starting with version 0.18.0) are install, publish, bumpand diffin line with the launch of no arguments. I was expecting something like elm-package listto show installed packages.

Is there a command to list the currently installed versions of the elm package?

+4
source share
2 answers

I think there is no one, but you can execute tree elm-stuff/packages -L 3 --noreporton your command line.

You will get a tree like this:

elm-stuff/packages
├── debois
│   ├── elm-dom
│   │   └── 1.2.3
│   └── elm-mdl
│       └── 8.1.0
├── elm-lang
│   ├── core
│   │   └── 5.1.1
│   ├── dom
│   │   └── 1.1.1
│   ├── html
│   │   └── 2.0.0
│   ├── http
│   │   └── 1.0.0
│   ├── mouse
│   │   └── 1.0.1
│   ├── virtual-dom
│   │   └── 2.0.4
│   └── window
│       └── 1.0.1
├── mgold
│   └── elm-date-format
│       └── 1.2.0
└── thaterikperson
    └── elm-strftime

You can also just do it cat elm-stuff/exact-dependencies.json, but there is no guarantee that they were installed:

{
    "debois/elm-mdl": "8.1.0",
    "elm-lang/virtual-dom": "2.0.4",
    "elm-lang/mouse": "1.0.1",
    "mgold/elm-date-format": "1.2.0",
    "elm-lang/dom": "1.1.1",
    "elm-lang/html": "2.0.0",
    "elm-lang/http": "1.0.0",
    "debois/elm-dom": "1.2.3",
    "elm-lang/window": "1.0.1",
    "elm-lang/core": "5.1.1"
}
+9

Lighttable , ( ) .

0

Source: https://habr.com/ru/post/1671773/


All Articles