Kevin Lane
d2324e36e7
Fix shellcheck errors
2019-11-22 10:37:53 -08:00
Kevin Lane
301cd3db3f
Add support for installing the latest stable version of a tool
2019-11-22 10:37:53 -08:00
Trevor Brown
edb5839239
Rename find_version to find_versions since it can return multiple versions
2019-10-22 19:03:05 -04:00
Trevor Brown
cea9b9574f
Install multiple versions when multiple versions are present in a .tool-versions file
2019-10-22 18:58:30 -04:00
Trevor Brown
3516c08c6b
Fix failing test
2019-06-17 20:38:17 -04:00
Leonid Shevtsov
d1f09c3fca
Change asdf install
to loop through available plugins
2019-05-31 08:32:12 +03:00
Trevor Brown
28cf1a74b9
Create function for removing comments from .tool-versions files
2019-03-27 08:50:15 -04:00
Trevor Brown
1a4a9435f3
Make install command ignore comments
2019-03-27 08:50:15 -04: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
Trevor Brown
22b709f94e
Merge pull request #403 from burnettk/support-tool-versions-without-newline
...
support .tool-versions content even if it does not end in a newline
2018-11-20 09:18:41 -05:00
Kevin Burnett
f1b2c59b1d
support .tool-versions if it does not end in newline
2018-11-15 21:47:48 -05:00
Trevor Brown
e095ed5efa
Don't install system versions.
2018-10-07 14:35:36 -04:00
Trevor Brown
1b44fa7549
Fix shellcheck warnings.
2018-06-16 15:26:02 -04:00
Trevor Brown
e8819d43a4
Address warnings reported by new version of shellcheck.
2017-12-27 09:54:00 -05:00
DustinChaloupka
05a7446619
Add installing from a parent directory's .tool-versions
2017-10-10 12:02:42 -05:00
Jonathan Knapp
20b70bccc7
Remove shebangs from lib files and pass bash dialect to shellcheck
2017-10-01 11:34:35 -04:00
Victor Borja
e814d58da3
Shellcheck all commands
2017-09-04 12:04:56 -05:00
Jonathan Knapp
808a8d48b7
Fix many shellcheck issues; ignore a few others
2017-09-04 10:09:47 -04:00
Daniel Perez
4a9d268710
Fix regression in install command
2017-07-30 20:15:21 +02:00
Daniel Perez
1499bda7b3
Trap sigint when installing plugins, fix #214
2017-07-30 20:02:19 +02:00
Bjørn Madsen
887de73b79
Avoid error when sysctl is missing hw.ncpu key
2017-03-13 09:13:42 +01:00
Stratus3D
7c28074423
Add a helpful error message to the install command to warn users when they don't specify a version to install.
2016-12-18 12:52:23 -05:00
Stratus3D
20ef5321e1
Update the install_command function so it works when invoked in directory whose name contains whitespace.
2016-10-25 21:45:17 -04: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
Daniel Perez
a8f67c9821
Fix issue in install get_concurrency
2016-07-01 18:26:25 +09:00
Daniel Perez
3af5d21067
Set ASDF_CONCURRENCY when installing
2016-07-01 16:42:59 +09:00
Akash Manohar J
d217514081
Fix loop bug during install with blank line in .tool-versions
2016-01-17 08:00:53 +05:30
Akash Manohar J
89f5566fb4
Just use exit code 1 instead of inheriting it
2015-08-11 21:50:46 +05:30
Akash Manohar J
ec866a1bb1
Fix #19 : Delete install path if install fails
2015-07-28 11:32:56 +05:30
Akash Manohar J
b4ef130a32
Fix looping
2015-06-24 22:43:15 +05:30
Akash Manohar J
2f8ffabde6
Fix #15 : asdf install from .tool-versions; Fix loops
2015-06-24 20:41:13 +05:30
Kevin Disneur
8904de08d3
Skip installation if the version is already installed
2015-06-15 20:04:58 +01:00
Akash Manohar J
77d4169cac
'Already installed' is a warning exit normally
2015-06-15 18:30:20 +05:30
Akash Manohar J
44e991b49e
mkdir install path
2015-05-24 15:04:20 +05:30
Akash Manohar J
e4cde2a10c
Warn if version already installed
2015-05-22 10:58:18 +05:30
Akash Manohar J
1d9fe07a11
Adhere to new & stable plugin API
2015-05-22 10:47:44 +05:30
Akash Manohar J
2bb9fa036d
Simplify tag/commit to ref
2015-05-22 10:17:27 +05:30
Akash Manohar J
d687a86ab6
Simplify vocabulary
2015-05-17 23:50:51 +05:30
Akash Manohar J
256e6cb000
Improve reshim command
2015-05-17 19:02:47 +05:30
Akash Manohar J
78c2c9b3fc
if [ condition ]; then
2015-05-17 16:17:45 +05:30
Akash Manohar J
1e1ea643e3
Fix typo
2015-05-17 14:19:28 +05:30
Akash Manohar J
44ef58def1
Move around commands dir
2015-05-17 14:01:55 +05:30