Commit Graph

752 Commits

Author SHA1 Message Date
Trevor Brown
1b44fa7549 Fix shellcheck warnings. 2018-06-16 15:26:02 -04:00
Trevor Brown
92c36393fa
Merge pull request #328 from brennanfee/master
Fix another spot for plugin-name env var lookup
2018-06-01 08:54:16 -04:00
Brennan Fee
4cb89b152c
Fix another spot for plugin-name env var lookup
After fixing #319 I wondered if there were any other spots where the same/similar bug existed.  I found one other location at line 126 in utils.sh.
2018-05-31 10:46:04 -05:00
Trevor Brown
d0b8c2ad68
Merge pull request #326 from brennanfee/master
Fix for #319
2018-05-30 22:48:31 -04:00
Brennan Fee
67bc9539d1 Fix for #319
Fixed #319 by forcing all dashes to underscores in the plugin name.
Shell variables don't allow dash.
2018-05-30 20:02:23 -05:00
Trevor Brown
877215ea79
Merge pull request #325 from sgnd/patch-1
Step for restart shell
2018-05-30 15:27:25 -04:00
Sugeng Agung Suganda
60113de677
Step for restart shell 2018-05-30 11:37:41 -07:00
Trevor Brown
878f0e9459
Merge pull request #323 from the-mikedavis/existing-plugin-exit-code
Make the exit code of an already installed plugin distinct
2018-05-30 09:11:38 -04:00
Michael Davis
3f51d3a5ab Change exit code from 0 -> 2 2018-05-29 21:47:46 -05:00
Trevor Brown
3bcbc69ed3 Update version to 0.5.0 2018-05-28 15:15:03 -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
Michael Davis
c4a2ffb356 Make exit code of an already installed plugin 0
When plugin-add is called on a plugin that's already installed, asdf
will return 0.
2018-05-25 13:26:48 -05:00
Akash Manohar
459ae45650
Merge pull request #314 from andrewthauer/plugin-exec-path
Feature: Plugin Hook for Custom Executable Path
2018-05-25 15:04:57 +05:30
Trevor Brown
6c2d95f50e
Add another item to the changelog for 0.5.0. 2018-05-01 08:45:17 -04:00
Daniel Perez
b3408a0eaf
Merge pull request #315 from mxie/mx-include-plugin-name-in-error-output
Include plugin name in error message if plugin doesn't exist
2018-05-01 10:59:04 +09:00
Melissa Xie
f79dda865a Include plugin name in error message if plugin doesn't exist
Previously, if we ran a command like `asdf install` and we encountered a
plugin that didn't exist, asdf produces an error saying "No such
plugin". Without knowing which plugin it could be referring too, we'd
have to manually go through each plugin in `.tool-versions` to find the
culprit.

With this commit, we'll now also include the plugin name as part of the
messaging for easier debugging.
2018-04-30 12:49:40 -04:00
Andrew Thauer
d94e0223bf Implement plugin hook to customize executable path
This feature allows the plugin to optionally change the executable path
of a shim prior to execution. This is useful when the plugin tool has
commands that may exist in multiple locations (like npm).
2018-04-25 22:18:34 -04:00
Trevor Brown
7774de9137
Merge pull request #311 from hlhr/master
List command without parameter lists all installed packages with versions
2018-04-18 11:16:52 -04:00
hlhr
e1a4ff244f list command without parameter lists all packages with versions 2018-04-16 18:37:22 -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
d9025448b9
Merge pull request #310 from endorama/change-exit-code
Change exit code
2018-04-11 13:13:13 -04:00
Edoardo Tenani
e710959d1b adapt test to new error code 2018-04-09 20:35:51 +02:00
Edoardo Tenani
9f58c22e98 use exit code 127 when version is not installed 2018-04-05 23:59:35 +02:00
Edoardo Tenani
23bf434dbf use exit code 126 when version is not set 2018-04-05 23:59:31 +02:00
Trevor Brown
ec84ad1f29
Merge pull request #306 from ipatch/master
add a more robust check for `bins` in `shims` dir for fish shell users
2018-04-03 09:00:38 -04:00
Trevor Brown
d6a45aa844
Merge pull request #309 from neilmb/nmb/no-version-to-stderr
Print "No version set" message to stderr
2018-04-02 11:52:46 -04:00
Neil Martinsen-Burrell
c7a8226db5 Print to stderr one level up to make tests pass 2018-03-30 12:09:56 -05:00
Neil Martinsen-Burrell
c1e50c2894 Print "No version set" message to stderr 2018-03-30 11:15:53 -05:00
ipatch
7102719d5b more terse solution for previous commit 2018-03-29 12:41:05 -05:00
ipatch
b6bc0b01ad add a more robust check for bins in shims dir for fish shell users 2018-03-28 23:49:40 -05:00
Trevor Brown
68b6b1532c Add check for duplicate issue numbers in the changelog to the release.sh script. 2018-03-12 15:45:02 -04:00
Trevor Brown
08fae99964 Update release.sh script so it prints out the git command needed to push the tag. 2018-03-11 15:14:22 -04:00
Trevor Brown
bcc959f6ef Update version to 0.4.3 2018-03-11 15:08:23 -04:00
Trevor Brown
1d68a15b8d Preparing for 0.4.4 version. 2018-03-11 15:07:55 -04:00
James Hegedus
4946e70237
Merge pull request #304 from jthegedus/master
begin stabalising asdf prepending to PATH logic
2018-03-10 11:24:41 +11:00
James Hegedus
28cfda2179 add colon between asdf segment and PATH 2018-03-09 01:02:08 +11:00
James Hegedus
d3895f593c match against whole PATH segments
string replacement still doesn't match against asdf segments when last in PATH
2018-03-09 01:01:09 +11:00
James Hegedus
f8c9e97900 revert use of colons to normalize PATH
* as per suggestion from here - https://github.com/asdf-vm/asdf/pull/303#issuecomment-371231967

* need to work on new PR with tests to address newly raised edge cases with PATH manipulation
2018-03-09 00:52:08 +11:00
James Hegedus
7f429dae19
Merge pull request #303 from jthegedus/master
add or move asdf to the front of PATH
2018-03-07 17:39:39 +11:00
James Hegedus
b0342d2f78 remove unnecessary colon 2018-03-07 17:06:34 +11:00
James Hegedus
c112fbf296 use variable in all places 2018-03-06 21:53:39 +11:00
James Hegedus
99110ce8d3 add or move asdf to front of PATH 2018-03-06 21:37:44 +11:00
Trevor Brown
e2ffb29ef6
Merge pull request #300 from fallwith/master
AZDF_CONFIG_FILE -> ASDF_CONFIG_FILE typo fix
2018-02-27 15:13:36 -05:00
james.bunch
d62fa098c1 AZDF -> ASDF environment variable name spelling
change all instances of `AZDF` to read `ASDF` instead, to bring the
variable names in line with the project name
2018-02-27 11:56:04 -08:00
james.bunch
742bfd0cab AZDF_CONFIG_FILE -> ASDF_CONFIG_FILE typo fix
update the README so that the `ASDF_CONFIG_FILE` environment variable is
spelled correctly
2018-02-27 11:39:45 -08:00
Trevor Brown
123c1404c1
Merge pull request #298 from aj-foster/fix-plugin-list-all-test
Fix `plugin-list-all` test
2018-02-26 09:17:37 -05:00
Trevor Brown
cd20cebb7c
Merge pull request #297 from aj-foster/no-version-messages
Refactor "no version set" messages
2018-02-26 09:15:53 -05:00
AJ Foster
210598239b Fix plugin-list-all test file name and update it for current output 2018-02-25 19:16:35 -05:00