Victor Borja
a98185b16a
Get version from env if ASDF_${TOOL}_VERSION is defined.
...
For example if asdf finds that the `ASDF_FOO_VERSION` is
defined in the current environment it will override the
version of `foo` from the `.tool-version` file.
Closes #49
2016-12-15 06:10:25 -06:00
Victor Borja
eecd1f36d1
Test produced shims by actually running them.
...
Test using a dummy executable.
Closes #127
2016-12-13 13:32:49 -06:00
Victor Borja
1c99863e56
Add documentation on metadata for shim authors
2016-12-10 14:05:23 -06:00
Victor Borja
c7d21bfb2c
Test shims executable
2016-12-10 12:22:36 -06:00
Victor Borja
7512d9abf4
Add metadata to shims
...
When a shim is created, add plugin metadata so we can later know which shims belong to which plugins, this will help aid with removing unused shims on uninstall. See #67
```
# asdf-plugin: ${plugin_name}”
```
Thanks to @duijf for the metadata proposal.
2016-12-10 12:17:50 -06:00
Victor Borja
26532e7914
Determine version from global setting when project is outside home.
...
Without this patch, asft was not able to determine the tool version
for a project located outside the user's HOME directory.
```
/work/project/
/home/me/.tool-versions
```
This changeset lets asdf find the global version stored at
$HOME/.tool-versions when the directory traversal from
the project dir was not able to find a suitable version.
2016-10-29 06:08:54 -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
Stratus3D
8bc937689c
Add test for the install command in a directory name containing whitespace.
2016-10-25 18:11:36 -04:00
Daniel Perez
95bde8e86f
Fix local and global commands to accept multiple versions
2016-08-30 19:13:10 -04:00
Stratus3D
181b5a769b
Add test for 'asdf local' in a directory with a name containing whitespace.
2016-08-30 19:13:10 -04:00
Kevin Rockwood
d505c0ee71
Return both version and path from find_version
...
This allows the current command to print the setting file.
2016-08-30 09:21:26 +09:00
Kevin Rockwood
cec4e9a737
Combine search and parse operations
...
We need to search and parse simultaneously in case the tool-versions
file doesn't contain a setter line for the plugin.
2016-08-28 13:41:37 +09:00
Kevin Rockwood
4d75ddd50b
Update current command with new util functions
...
current will now print paths to legacy files and .tool-version files
2016-08-14 09:10:24 +09:00
Kevin Rockwood
c6d814e247
Unify .tool-versions and legacy file search
2016-08-14 09:10:24 +09:00
Kevin Rockwood
16f3fa9f03
Use dummy plugin for utils test
2016-08-14 09:10:24 +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
0ce18100c5
Use dummy plugin in version_commands test
...
This adds a helper to install dummy versions. Hopefully it makes the
test setup a little easier to reason about.
2016-07-25 09:40:52 +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
Daniel Perez
3af5d21067
Set ASDF_CONCURRENCY when installing
2016-07-01 16:42:59 +09:00
Daniel Perez
61e014a2d6
Fix local command bug.
2016-05-14 11:11:16 +09:00
Daniel Perez
b0513a6da0
Fix local command to support legacy files.
2016-05-03 00:27:52 +09:00
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