安装了哪些elm软件包版本?

时间:2017-03-08 05:01:57

标签: elm package-managers

CREATE TRIGGER [dbo].[Trg_After_Update] ON [dbo].[PurchaseDetails] FOR UPDATE AS BEGIN UPDATE Product SET Rate = I.SallingPrice, Stock = (CASE WHEN I.Quantity > D.Quantity THEN (Stock - (I.Quantity - D.Quantity)) WHEN I.Quantity < D.Quantity THEN (Stock + (D.Quantity - I.Quantity)) END) FROM inserted I Inner join deleted D on I.DetailsID = D.DetailsID AND I.ProductID = D.ProductID Where Product.ProductID = I.ProductID END GO 可以管理elm的依赖项,但它支持的唯一命令(从版本0.18.0开始)是elm-packageinstallpublish和{{1根据运行它没有参数。我期待像bump这样的东西来显示已安装的软件包。

是否有命令列出当前安装的elm软件包版本?

2 个答案:

答案 0 :(得分:9)

我认为没有人,但您可以在命令行中执行tree elm-stuff/packages -L 3 --noreport

你会得到这样一棵树:

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

您也可以cat elm-stuff/exact-dependencies.json,但无法保证安装它们:

{
    "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"
}

答案 1 :(得分:0)

如果您使用带有elm-light插件的Lighttable编辑器,那么您将拥有一个显示(和添加)包的命令。