Commit Graph

91 Commits

Author SHA1 Message Date
Victor Hugo Borja
9a79ac9526 user configurable pre-post command hooks
Suppose a `foo` plugin is installed and provides a `bar` executable.
The following hooks will be executed when set in `.asdfrc`:

```shell
post_asdf_install_foo = echo installed foo version ${1}
post_asdf_reshim_foo = echo reshimmed foo version ${1}

pre_foo_bar = echo about to execute command bar from foo with args: ${@}
post_foo_bar = echo just executed command bar from foo with args: ${@}
```
2019-01-19 13:32:07 -06:00
Victor Hugo Borja
2c9621c1cc New shim metadata to allow many plugins with same executable names
Features

* New shim version meta-data allows shims to not depend on a particular plugin
  nor on its relative executable path (#431)
  Upgrading requires shim re-generation and should happen automatically
  by `asdf-exec`:
    `rm -rf ~/.asdf/shims/` followed by `asdf reshim`
* Added lots of tests for shim execution.
  We now make sure that shim execution obeys plugins hooks like
  `list-bin-paths` and `exec-path`.
* Shim exec is now performed by a new `bin/private/asdf-tool-exec` that might
  be faster for most common use case: (versions on local .tool-versions file)
  but fallbacks to slower `get_preset_version_for` which takes legacy formats
  into account.
* Shim exec recommends which plugins or versions to set when command is
  not found.

Fixed Bugs

* Allow many plugins to provide shims with same executable name (#431)
2019-01-19 13:32:07 -06:00
Victor Hugo Borja
7fda291df0 Add asdf shim-versions command (#380)
For example `asdf shim-versions npm` will list the plugins and their
versions on which the `npm` command is available.

Based on #432
2019-01-19 13:31:26 -06:00
Victor Hugo Borja
4766a2b0b2 New shim metadata to allow many plugins with same executable names
Features

* New shim version meta-data allows shims to not depend on a particular plugin
  nor on its relative executable path (#431)
  Upgrading requires shim re-generation and should happen automatically
  by `asdf-exec`:
    `rm -rf ~/.asdf/shims/` followed by `asdf reshim`
* Added lots of tests for shim execution.
  We now make sure that shim execution obeys plugins hooks like
  `list-bin-paths` and `exec-path`.
* Shim exec is now performed by a new `bin/private/asdf-tool-exec` that might
  be faster for most common use case: (versions on local .tool-versions file)
  but fallbacks to slower `get_preset_version_for` which takes legacy formats
  into account.
* Shim exec recommends which plugins or versions to set when command is
  not found.

Fixed Bugs

* Allow many plugins to provide shims with same executable name (#431)
2019-01-19 13:31:26 -06:00
Victor Hugo Borja
94eadeb3ce Update changelog 2019-01-19 13:27:48 -06:00
Victor Hugo Borja
ed843f29f6 asdf reshim without arguments will reshim all plugins. (#407) 2019-01-19 13:22:12 -06:00
Victor Hugo Borja
9b27848d07 New shim metadata to allow many plugins with same executable names
Features

* New shim version meta-data allows shims to not depend on a particular plugin
  nor on its relative executable path (#431)
  Upgrading requires shim re-generation and should happen automatically
  by `asdf-exec`:
    `rm -rf ~/.asdf/shims/` followed by `asdf reshim`
* Added lots of tests for shim execution.
  We now make sure that shim execution obeys plugins hooks like
  `list-bin-paths` and `exec-path`.
* Shim exec is now performed by a new `bin/private/asdf-tool-exec` that might
  be faster for most common use case: (versions on local .tool-versions file)
  but fallbacks to slower `get_preset_version_for` which takes legacy formats
  into account.
* Shim exec recommends which plugins or versions to set when command is
  not found.

Fixed Bugs

* Allow many plugins to provide shims with same executable name (#431)
2019-01-19 13:22:12 -06:00
John Doe
74b8e56722 Preparing for 0.6.3 release. 2019-01-19 09:13:36 -05:00
Trevor Brown
a5cbd7d23b Preparing for 0.6.2 release. 2018-11-26 20:58:10 -05:00
Trevor Brown
eaafaa190c Preparing for 0.6.1 release. 2018-11-13 20:07:15 -05:00
Trevor Brown
ba2fb201d6 Preparing for 0.6.0 release. 2018-10-07 22:31:04 -04:00
Trevor Brown
e872db1bd8 Preparing for 0.5.1 release. 2018-07-30 09:11:51 -04:00
Trevor Brown
d0b9b837c9 Remove -dev tag from 0.5.0 version in changelog. 2018-05-28 15:14:52 -04:00
Trevor Brown
c041c930c5 Update CHANGELOG.md in preparation for 0.5.0 release. 2018-05-28 15:09:49 -04:00
Trevor Brown
6c2d95f50e
Add another item to the changelog for 0.5.0. 2018-05-01 08:45:17 -04:00
Trevor Brown
27b5e21db3
Add shim exit code feature to changelog. 2018-04-11 17:43:57 -04:00
Trevor Brown
351951f530
Update CHANGELOG.md 2018-04-11 13:13:33 -04:00
Trevor Brown
1d68a15b8d Preparing for 0.4.4 version. 2018-03-11 15:07:55 -04:00
Trevor Brown
651096d9a1 Prepare changelog for 0.4.2 release. 2018-02-11 17:45:30 -05:00
Trevor Brown
a66a31c76d Add new tool version environment variable feature to changelog. 2018-02-11 17:34:29 -05:00
Trevor Brown
13c9215abc Add plugin-list --urls feature to changelog. 2018-02-11 15:38:50 -05:00
Trevor Brown
9323a7ad49 Add PATH checking feature to CHANGELOG. 2018-02-11 15:32:38 -05:00
Trevor Brown
9b420bbd65 Add bugfix to changelog. 2018-02-11 15:19:22 -05:00
Trevor Brown
b97b32d88b Update CHANGELOG.md in preparation for 0.4.1 release. 2018-02-11 15:04:05 -05:00
Trevor Brown
6b2901b0d0
Add another bug fix to CHANGELOG 2017-10-27 14:48:13 -04:00
vic
28ef96df91
Update CHANGELOG.md 2017-10-27 11:51:47 -05:00
vic
00e7644464 Update CHANGELOG.md 2017-10-24 18:32:45 -05:00
vic
8a2fd85529 Update CHANGELOG.md 2017-10-18 02:25:53 -05:00
Trevor Brown
896bd163e0 Correct versions in CHANGELOG.md. 2017-09-19 18:02:07 -04:00
Trevor Brown
252ee6a608 Add more items to CHANGELOG.md. 2017-09-12 18:48:00 -04:00
Victor Borja
744742ca4a Update CHANGELOG.md 2017-09-03 20:42:28 -05:00
Trevor Brown
3d332d94dc Add item to changelog. 2017-08-08 14:19:23 -04:00
Julian Laubstein
2f0bb3c605 Fixed Markdown formatting in changelog 2017-04-26 15:00:43 +02:00
Trevor Brown
12d2abc818 Add 0.3.0 features to changelog. 2017-03-31 11:03:54 -04:00
Trevor Brown
dd83a70961 Add items to changelog in preparation for 0.3.0 release. 2017-03-08 16:37:23 -05:00
Trevor Brown
7445db63b1 Add grep fix to changelog. 2017-03-07 13:36:58 -05:00
Stratus3D
604156344d Add note on ASDF_DIR to changelog. 2017-03-07 09:57:14 -05:00
Stratus3D
4ba424276d Prepare for 0.2.1 release. 2016-12-18 13:25:11 -05:00
Stratus3D
5411e9f16f Add line to changelog listing recently merged PR. 2016-11-03 11:43:17 -04:00
Trevor Brown
a58f48f01f Prepare for 0.2.0 release
* Add everything that was merged for 0.2.0 to the changelog.
* Update install command in the readme with 0.2.0 tag.
2016-10-22 14:56:41 -04:00
Trevor Brown
e31cdbd460 Add CHANGELOG.md with details on 0.1.0 and 0.2.0-dev. 2016-08-04 19:20:53 -04:00