Commit Graph

951 Commits

Author SHA1 Message Date
Daniel Perez
365a294cc3 Update CHANGELOG 2019-03-16 20:00:30 +00:00
Daniel Perez
8a4e28034b
Merge pull request #484 from asdf-vm/fix-version-handling
Fix version handling
2019-03-16 19:56:33 +00:00
Daniel Perez
f372833226 Add documentation about multiple versions 2019-03-16 19:45:38 +00:00
Daniel Perez
c06799cfca Fix legacy version and multi versions handling 2019-03-16 19:45:37 +00:00
Daniel Perez
741a731043
Merge pull request #483 from asdf-vm/update-fish-completions
Add update to Fish completions
2019-03-14 21:45:12 +00:00
Daniel Perez
396e804966 Add update to Fish completions 2019-03-14 21:29:32 +00:00
Trevor Brown
9e30218766 Update version to 0.7.0 2019-03-02 09:45:43 -05:00
Trevor Brown
d6009d6909 Prepare changelog for 0.7.0 release 2019-03-02 09:45:32 -05:00
Trevor Brown
ba42343f92
Merge pull request #474 from asdf-vm/update-fix
Use asdf_dir instead of $ASDF_DIR
2019-03-01 15:09:46 -05:00
Trevor Brown
a60b28e716 Use asdf_dir instead of $ASDF_DIR 2019-02-28 22:55:50 -05:00
Isaac Whitfield
cf6149f622 document Spack to install plugin deps (#471) 2019-02-22 08:25:40 +11:00
James Hegedus
76410eca46
show site url in readme (#467) 2019-02-14 15:10:01 +11:00
Trevor Brown
62cd0561e2 Create CNAME 2019-02-12 09:12:13 -05:00
Trevor Brown
2920bc46e6
Merge pull request #463 from HeroicEric/patch-1
Fix typo
2019-02-11 12:17:03 -05:00
Eric Kelly
8d63379eeb
Fix typo 2019-02-11 09:00:14 -08:00
James Hegedus
abea57501d
add "versions" to docs subtitle (#462)
as with #460
2019-02-11 17:39:15 +11:00
Trevor Brown
0b49f05c72 Add the word version to README tagline and description (#460)
An attempt to clarify the purpose of asdf by making it clear it's for managing multiple versions of runtimes.
2019-02-11 09:28:25 +11:00
Trevor Brown
b1d8ead5a0 Delete CNAME 2019-02-05 08:54:48 -05:00
Trevor Brown
4739b38c2e Create CNAME 2019-02-05 08:54:22 -05:00
Davor Badrov
d9e2d567f8 [docs] add commands for macOS and Fedora plugins dependencies (#454) 2019-02-02 20:56:49 +11:00
James Hegedus
f19d5a25ee
add list of improvements to docs (#448) 2019-02-01 22:59:11 +11:00
James Hegedus
65aa5abe4e
de-dupe readme and finalise docs site (#441)
* save old readme for migration purposes

* promote new readme

* use the repo readme from the doc site homepage

* mention extendable plugin system in title and old plugin support

* improve subtitles english

* update links to direct users to the site!

* add link to docs site in readme until github repo site link is populated

* update troublesome contributing section
2019-01-29 22:31:34 +11:00
James Hegedus
57c5e9dbcb
Significant documentation site improvements (#440)
# Summary

This contains fixes and significant improvements to the documentation site.

* fixes some routing issues due to erroneous docsify config
* fixed links and layout of 404 pg
* improved the language on the landing page as per #438 
* propose a NEW_README.md tackling concerns with #438  and #422 
* use docsify specific md to emphasise some text
* add docsify-themeable plugin to improve loading experience and future proof for customisation
* improve use of `asdf-vm` over `asdf`

## Other Information

Included in this PR is a file `docs/NEW_README.md` which is my proposed README for this repo. The intention was to have all documentation in a single place, the site, and simplify the readme bringing the focus to explaining the tool rather than instructing users on how to use it.

I will create a separate PR for the README, but in the meantime the landing page composes this new readme with the ballad.
2019-01-25 19:17:20 +11:00
Trevor Brown
8d4ec0e987
Merge pull request #439 from tkossak/master
fix "asdf update" on fish
2019-01-24 15:12:40 -05:00
Kossak
d0e2b09e01 fix "asdf update" on fish 2019-01-24 20:42:58 +01:00
Victor Hugo Borja
cdd8dc105a fix shellchecks 2019-01-23 22:27:31 -06:00
Victor Hugo Borja
4b40e80776 Test that command being executed can see other tools shims on path 2019-01-23 22:18:18 -06:00
James Hegedus
3f3e0f52c5
Merge pull request #437 from chikamichi/patch-1
Mention ~/.tool-versions in uninstalling instructions
2019-01-24 11:11:10 +11:00
Jean-Denis Vauguet
bfb28b76b7
Update core-manage-asdf-vm.md 2019-01-24 00:58:45 +01:00
Victor Hugo Borja
8ccfda26b8 Prevent warning about global ASDF_DIR being undefined. 2019-01-21 22:45:32 -06:00
Victor Hugo Borja
0260c442cc Test to ensure asdf exec and asdf env use plugin custom exec-env 2019-01-21 01:33:52 -06:00
Victor Hugo Borja
2e22409c90 v0.6.4-dev 2019-01-20 14:39:18 -06:00
Victor Hugo Borja
ab59e5618f Move common functionality to utils.sh
- Make shim-exec, shim-env, and which use the same logic to look for commands
- Make sure shim-exec and which use a plugin exec-path hook as documented
  (the hook takes a relative path to the executable and returns also
   a relative path, possibly modified)
- Fix shellchecks
2019-01-20 14:02:22 -06:00
Victor Hugo Borja
9cac0ac50a Faster exec times. Load commands only when nedded.
When testing, use `run asdf` to actually test the command
as the user would invoke it, so that we might catch possible
errors on `bin/asdf`.
2019-01-20 02:13:20 -06:00
Victor Borja
7ff64ef64a
Merge pull request #435 from vic/shim-env
Add `asdf env` command
2019-01-19 21:14:31 -06:00
Victor Hugo Borja
8927a4a09f Add asdf env command 2019-01-19 20:59:27 -06:00
Victor Hugo Borja
89775c8d88 fix lint on shim-exec 2019-01-19 20:25:41 -06:00
Victor Hugo Borja
6da747b6ce Test that asdf exec works even if asdf shims are not in PATH. 2019-01-19 20:09:53 -06:00
Victor Hugo Borja
e51f778b61 Move bin/private/asdf-tool-exec to be asdf exec command
This way the code for executing shims can also be invoked via
`asdf exec <tool> [args..]` and can be linted.
2019-01-19 20:02:14 -06:00
Victor Borja
f1809ae290
Remove duplicate entries from merge.
Remove entries on 0.6.3 that are actually on 0.6.4-dev
2019-01-19 14:52:59 -06:00
Victor Hugo Borja
cc78863092 Merge branch '0.6.4-dev' 2019-01-19 14:06:28 -06:00
Victor Hugo Borja
a46eaf3b4a Merge remote-tracking branch 'origin/shim-versions-command' into 0.6.4-dev 2019-01-19 13:56:56 -06:00
Victor Hugo Borja
9420ca1aec Add hooks for plugin uninstall 2019-01-19 13:48:21 -06:00
Victor Hugo Borja
dcc3727cab Add pre-install and pre-reshim hooks 2019-01-19 13:32:07 -06:00
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