Commit Graph

116 Commits

Author SHA1 Message Date
Daniel Perez
72630a0b10 Improve current command.
* Allow to be called without arguments
* Fix error in path display
* Add --short option
2016-08-02 16:35:08 +09:00
Kevin Rockwood
7517aa3abc Remove getter feature on local and global commands
This simplifies the `local` and `global` commands. `asdf current` should
be sufficient for getting the current version.

closes #80
2016-07-25 09:44:53 +09: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
Laurens Duijvesteijn
ccefa996dc plugin-update: argument validation 2016-07-03 13:15:57 +02:00
Laurens Duijvesteijn
f9572739f6 plugin-add: argument validation 2016-07-03 13:11:40 +02: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
Daniel Perez
caee08d39b Improve plugin tests 2016-06-17 18:37:26 +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
Akash Manohar
9c74973f8b Merge pull request #54 from tuvistavie/plugin-test
Add command and instructions to test plugin. Thank you @tuvistavie ~!
2016-05-14 10:07:17 +05:30
Daniel Perez
61e014a2d6 Fix local command bug. 2016-05-14 11:11:16 +09:00
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
b0513a6da0 Fix local command to support legacy files. 2016-05-03 00:27:52 +09:00
Akash Manohar J
5739dd723a Check if legacy versions are enabled before using them 2016-04-25 05:02:18 +05:30
Akash Manohar J
18ed5c106a Merge latest master 2016-04-25 04:48:12 +05:30
Daniel Perez
784d7e9f34 Add support for local and global commands. 2016-04-25 02:13:09 +09:00
Daniel Perez
d4ee3aa999 Add support for config file. 2016-04-24 22:39:24 +09:00
Trevor Brown
dcfa52e2ca Correct if statement in get_tool_version_from_legacy_file function. 2016-02-13 14:10:58 -05:00
Trevor Brown
2e17f9eb03 Reorder variables the get_tool_version_from_legacy_file function. 2016-02-13 10:32:35 -05:00
Trevor Brown
9080ff2e33 Fix bug in get_preset_version_for function. Refactor the get_tool_version_from_legacy_file function. 2016-02-13 10:30:34 -05:00
Akash Manohar J
d217514081 Fix loop bug during install with blank line in .tool-versions 2016-01-17 08:00:53 +05:30
William Ashton
f4f35be9d6 Fixes #26 2015-12-22 19:00:18 -05:00
Trevor Brown
d7542d9f8f Update get_tool_version_from_legacy_file function to check for script with dashes instead of underscores. 2015-11-29 12:09:39 -05:00
Trevor Brown
0a2ff4de5c Fix logic error that was causing .tool-versions file higher in directory tree to override legacy version file. 2015-11-28 18:02:58 -05:00
Trevor Brown
89c341829c First working version of utils.sh with legacy version file support. 2015-11-28 17:27:54 -05:00
Akash Manohar
ad0d365cf4 Executable check should use actual file path 2015-11-19 08:49:19 +05:30
Stratus3D
225c690893 Remove duplicate call to write_shim_script. 2015-11-13 11:36:25 -05:00
Trevor Brown
8e96be3243 Remove todo comment. 2015-11-05 06:43:12 -05:00
Trevor Brown
9bdc207ee2 Add check to ensure file is an executable in generate_shims_for_version function. 2015-11-05 06:35:53 -05:00
Akash Manohar
f4aa56b764 Merge pull request #20 from PSPDFKit-labs/master
Fix path: syntax in .tools-version & use exec
2015-10-26 08:17:57 +05:30
Martin Schürrer
aaa8abfd23 Don't spawn subshells, use exec 2015-10-01 19:31:53 +02:00
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
Akash Manohar J
d428c044fc fix get_tool_version_from_file 2015-06-24 19:33:25 +05:30
Akash Manohar J
9f99442603 Merge branch 'master' of github.com:HashNuke/asdf 2015-06-24 19:17:25 +05:30
Akash Manohar J
3d64dd99ab Read global tool versions file if local doesnt specify package 2015-06-24 19:16:49 +05:30
Kevin Disneur
8904de08d3
Skip installation if the version is already installed 2015-06-15 20:04:58 +01:00
Akash Manohar J
6f6ac56540 Merge branch 'master' of https://github.com/HashNuke/asdf 2015-06-15 18:32:42 +05:30
Akash Manohar J
77d4169cac 'Already installed' is a warning exit normally 2015-06-15 18:30:20 +05:30
Akash Manohar J
6b3a6f0011 Warn if plugin already installed 2015-06-15 18:29:27 +05:30
Akash Manohar J
bf0f9bc1fe Remove bulleting from plugin list 2015-06-14 18:55:20 +05:30
Kevin Disneur
7bb35d04ee
Update 'no plugin installed' message 2015-06-14 14:22:17 +01:00
Kevin Disneur
c2fc8dd34e
Add a command to list the plugins already installed 2015-06-14 13:37:48 +01:00
Akash Manohar J
681daec95a Check for custom shim templates in $plugin/shims 2015-06-07 00:30:55 +05:30
Akash Manohar J
1bfabd67fb Replace var names 2015-05-29 21:54:31 +05:30
Akash Manohar J
a59fddd265 Fix list command 2015-05-29 21:50:32 +05:30