Commit Graph

917 Commits

Author SHA1 Message Date
Trevor Brown
feaebe53df Add readlink to list of banned commands. 2018-07-14 09:40:26 -04:00
Daniel Perez
cee3659790
Merge pull request #340 from friedenberg/master
Fix issue with Fish shell shim loading script
2018-07-14 11:49:08 +09:00
Sasha Friedenberg
adfe8c188b Fix issue with Fish shell shim loading script 2018-07-11 13:14:30 -04:00
Trevor Brown
9a525d6bca
Merge pull request #337 from Stratus3D/symlink-tests
Symlink fix and tests
2018-06-17 19:37:11 -04:00
Trevor Brown
bcdc5e0ba7 Switch to single quotes for sed regex. 2018-06-17 19:31:36 -04:00
Trevor Brown
001cd6022f Ignore shellcheck warning. 2018-06-16 23:07:17 -04:00
Trevor Brown
631ad8a005 Resolve symlink paths before altering .tool-version files. 2018-06-16 22:59:37 -04:00
Trevor Brown
c7fb348ffd Add tests for symlink preservation. 2018-06-16 22:48:16 -04:00
Trevor Brown
4a4f453a93 Add readlink to list of banned commands. 2018-06-16 20:19:33 -04:00
Trevor Brown
c1ce9de4d4
Merge pull request #331 from brennanfee/fix-330-asdf-list
Fix for #330 - "asdf list" spacing
2018-06-16 15:30:35 -04:00
Trevor Brown
5e494f28e7
Merge pull request #336 from Stratus3D/fix-shellcheck-warnings
Fix shellcheck warnings.
2018-06-16 15:29:24 -04:00
Trevor Brown
1b44fa7549 Fix shellcheck warnings. 2018-06-16 15:26:02 -04:00
rafaelliu
fb4fc79be7 Adding back check if directory exists 2018-06-06 19:06:13 -07:00
rafaelliu
ae31774c69 Fixes #333, there was a unnecessary cd issued (typo?) within a $ subshell on asdf.sh 2018-06-06 18:37:57 -07:00
Brennan Fee
ba1b181b58 Fixing unit tests for 'asdf list'
Now that we put spacing in front of the version #'s the tests need to
reflect that.
2018-06-01 10:15:40 -05: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
8a018715c7
Fix for #330 - "asdf list" spacing
In order to make the output of "asdf list" a bit easier to read, this commit adds two spaces to the front of each version being written so as to indent them under the plugin.
2018-05-31 11:45:20 -05: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