简体   繁体   English

打开Elixir源包?

[英]Open Elixir Source Package?

In Ruby you can easily view the source of the gem version used in your app with: 在Ruby中,您可以通过以下方式轻松查看应用中使用的gem版本的来源:

$ bundle open devise

Is there an equivalent in Elixir? Elixir中是否有相同的名称?

There is no Elixir equivalent of bundle open GEM such as mix open DEP . 没有Elixir相当于bundle open GEM例如mix open DEP

Having a package to add a mix open task for example, would add little convenience because Mix dependencies are project-specific and not global. 例如,有一个包添加一个mix open任务会增加一些便利,因为Mix依赖项是特定于项目的而不是全局的。 You'd have to specify the package as a dependency for every project, unless you install it as an archive. 除非将其作为存档安装,否则必须将包指定为每个项目的依赖项。

Instead, view the source with <editor> deps/<package> from your project's root directory. 而是从项目的根目录中使用<editor> deps/<package>查看源代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM