Commit Graph

55 Commits

Author SHA1 Message Date
Trevor Brown
c37307a2cc Create get_custom_executable_path function to hold the custom exec path logic 2019-01-05 10:23:41 -05: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
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
AJ Foster
eb5e5b780c Refactor "no version set" message to utilities 2018-02-25 18:33:42 -05:00
AJ Foster
c2fb6a3140 Escape backticks in command suggestion 2018-02-25 00:50:46 -05:00
AJ Foster
f15a0c9de3 Suggest action when no version is set 2018-02-25 00:40:26 -05:00
Victor Borja
8b40b30dec let bin/asdf expand args into command functions 2017-09-04 12:49:38 -05:00
Victor Borja
e814d58da3 Shellcheck all commands 2017-09-04 12:04:56 -05:00
Jonathan Knapp
9a3bd01ee4
Ignore following non-constant source 2017-09-04 10:09:47 -04:00
Jonathan Knapp
808a8d48b7
Fix many shellcheck issues; ignore a few others 2017-09-04 10:09:47 -04:00
Daniel Perez
b9fae70c0d Add plugin-list-all command 2017-08-25 11:29:23 +09:00
Fernando
1e9166e9bc Merge branch 'master' into which_command 2017-05-15 15:40:42 -03:00
Trevor Brown
0f7757a910 Correct if statements in asdf-exec and utils.sh. 2017-03-25 14:50:30 -04:00
Daniel Perez
f5152f255a WIP: support system version 2017-03-17 22:00:37 -04:00
Trevor Brown
5f39035850 Make sure update function is loaded. 2017-03-17 13:07:30 -04:00
Fernando Crespo
fb4e263598 Initial support for which command 2017-03-14 10:56:59 -03:00
Kevin Rockwood
ca1273e7d4 Rename which to current (#79)
* Rename `asdf which` -> `asdf current`

* Output `set by $path` with current command

* Use dummy plugin in current_command test

* Hide "set by" message if derived from legacy file
2016-07-25 00:47:17 +09:00
Laurens Duijvesteijn
337b335c4d Check if plugin exists before removing it (#77)
Check if plugin exists before removing it
2016-07-06 08:19:15 +09:00
Akash Manohar
c3765182f8 Merge pull request #51 from tuvistavie/use-multiple-versions
Make it possible to use fallback versions. Thank you @tuvistavie ~!
2016-05-14 15:19:29 +05:30
Daniel Perez
072a57e4cb Add command and instructions to test plugin. 2016-05-13 16:04:01 +09:00
Daniel Perez
3e31c40020 Make it possible to use fallback versions. 2016-05-04 02:22:48 +09:00
Daniel Perez
784d7e9f34 Add support for local and global commands. 2016-04-25 02:13:09 +09:00
Martin Schürrer
aaa8abfd23 Don't spawn subshells, use exec 2015-10-01 19:31:53 +02:00
Martin Schürrer
78d516d063 Fix path: syntax in .tools-version 2015-08-11 12:33:08 +02:00
Kevin Disneur
c2fc8dd34e
Add a command to list the plugins already installed 2015-06-14 13:37:48 +01:00
Akash Manohar J
34222e34ab add where command to get install path 2015-05-29 00:08:13 +05:30
Akash Manohar J
d037628e7e Add which command 2015-05-27 12:13:10 +05:30
Akash Manohar J
af4784e516 Check if version is installed 2015-05-25 11:35:05 +05:30
Akash Manohar J
3217a1f99e Merge and resolve conflicts 2015-05-24 15:03:56 +05:30
Akash Manohar J
bcb4780b33 Add shim command 2015-05-24 15:02:38 +05:30
Akash Manohar J
1d9fe07a11 Adhere to new & stable plugin API 2015-05-22 10:47:44 +05:30
Akash Manohar J
540fb8eabc Use ref 2015-05-22 10:41:48 +05:30
Akash Manohar J
b31b4aef67 Use source and set env vars for exec-env 2015-05-21 14:35:26 +05:30
Akash Manohar J
f8b81f13a0 source plugin-push command 2015-05-21 09:56:41 +05:30
Akash Manohar J
1d39f0ae49 Merge branch 'master' of https://github.com/HashNuke/asdf 2015-05-21 09:55:50 +05:30
Akash Manohar J
07c66d4282 Add plugin-push to make development easier 2015-05-21 09:55:17 +05:30
Akash Manohar J
9f4c1d022f Resolve conflicts and merge 2015-05-21 07:14:24 +05:30
Akash Manohar J
beaefd696f Check if executable exists before trying to execute it 2015-05-21 07:12:38 +05:30
Akash Manohar J
a7d1b31dad Use dot operator instead; Allow exporting env vars 2015-05-20 12:36:06 +05:30
Akash Manohar J
4fa59fe271 Support path:/foo/bar in .tool-versions for custom installs 2015-05-20 12:20:37 +05:30
Akash Manohar J
237a5ab59e Fix #1: Better to stick to a single common shell
Referred a couple other version managers. The advantage is not having to
maintain the scripts for other shells (bash comes by default everywhere
I've seen).
2015-05-19 10:44:10 +05:30
Akash Manohar J
b32748a10c Fix asdf-exec 2015-05-18 00:15:00 +05:30
Akash Manohar J
d687a86ab6 Simplify vocabulary 2015-05-17 23:50:51 +05:30
Akash Manohar J
78c2c9b3fc if [ condition ]; then 2015-05-17 16:17:45 +05:30
Akash Manohar J
ab04ca9f55 Just use a subshell, no other way; Thanks to kurahaupo on #bash IRC for helping out 2015-05-17 16:14:20 +05:30
Akash Manohar J
07d686c7c3 New executable 2015-05-17 14:19:19 +05:30
Akash Manohar J
8a660c88a4 asdf-exec 2015-05-17 14:01:03 +05:30
Akash Manohar J
b0b8588d0e Fix asdf bin 2015-05-11 22:20:29 +05:30
Akash Manohar J
99ce492f15 Moved utils.sh to lib dir 2015-05-10 23:50:56 +05:30