Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which elm package versions are installed?

elm-package can manage dependencies for elm, but the only commands it supports (as of version 0.18.0) are install, publish, bump and diff according to running it without arguments. I was expecting something like elm-package list to show the installed packages.

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

like image 924
Alex Taylor Avatar asked Jan 05 '23 09:01

Alex Taylor


1 Answers

I think there is no one, but you can execute tree elm-stuff/packages -L 3 --noreport in 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 cat elm-stuff/exact-dependencies.json, but there is no guarantee of have them 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"
}
like image 194
gabrielperales Avatar answered Mar 05 '23 08:03

gabrielperales