diff options
author | Pratik Chaudhary <chaudharypratik97@gmail.com> | 2021-05-09 10:23:16 +0545 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-09 06:38:16 +0200 |
commit | f3984eaf16a795482ac573cc6f9ab16ff7d7abe3 (patch) | |
tree | 8dc76dc0a799e031d062acc2227c798da0ffa898 /docs | |
parent | 3b37bcd063f3c1b0d80e46a41a6bc9e1e933d4f7 (diff) |
feat(package): add support for nimble project package version (#2569)
* feat(nim): add support for nimble project package version
* Replace find_file with context scanner. Fixes the failing tests.
* Replace `utils::exec_cmd` with `context.exec_cmd` so that it uses
global timeout
* Add tests for nimble project version
* Add docs for nimble in package version module for english language
* Update docs/config/README.md
Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
* Add test for a case when nimble is not available
* Remove extract_vlang_version
I don't know why it did not come up while I was fixing merge conflicts
on rebase.
Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/config/README.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/config/README.md b/docs/config/README.md index 1f30d1258..0aee51188 100644 --- a/docs/config/README.md +++ b/docs/config/README.md @@ -2006,13 +2006,13 @@ symbol = "☁️ " ## Package Version The `package` module is shown when the current directory is the repository for a -package, and shows its current version. The module currently supports `npm`, `cargo`, +package, and shows its current version. The module currently supports `npm`, `nimble`, `cargo`, `poetry`, `composer`, `gradle`, `julia`, `mix` and `helm` packages. - [**npm**](https://docs.npmjs.com/cli/commands/npm) – The `npm` package version is extracted from the `package.json` present in the current directory -- [**cargo**](https://doc.rust-lang.org/cargo/) – The `cargo` package version is extracted from the `Cargo.toml` present - in the current directory +- [**cargo**](https://doc.rust-lang.org/cargo/) – The `cargo` package version is extracted from the `Cargo.toml` present in the current directory +- [**nimble**](https://github.com/nim-lang/nimble) - The `nimble` package version is extracted from the `*.nimble` file present in the current directory with the `nimble dump` command - [**poetry**](https://python-poetry.org/) – The `poetry` package version is extracted from the `pyproject.toml` present in the current directory - [**composer**](https://getcomposer.org/) – The `composer` package version is extracted from the `composer.json` present |