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
Jonathan Knapp
33d7d9c26c
Merge remote-tracking branch 'source/master' into origin/shellcheck
2017-10-01 09:15:22 -04:00
Trevor Brown
84ad80f575
Add mechanism to disable the update command since it will not work when asdf is installed via brew.
2017-09-12 18:48:00 -04: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
808a8d48b7
Fix many shellcheck issues; ignore a few others
2017-09-04 10:09:47 -04:00
vic
779e757b56
Merge pull request #212 from asdf-vm/asdf-plugin-version
...
Add asdf-plugin-version metadata to shims
2017-09-03 20:26:27 -05:00
Victor Borja
5398d8949c
Fix sed invocations for OSX
2017-09-03 20:23:06 -05:00
Victor Borja
f23b448c0c
Merge remote-tracking branch 'origin/master' into asdf-plugin-version
2017-09-03 20:01:27 -05:00
Daniel Perez
b9fae70c0d
Add plugin-list-all command
2017-08-25 11:29:23 +09:00
Daniel Perez
8af4b3377c
List all installed plugins when no argument is passed to current
2017-08-19 13:56:28 +09: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
Daniel Perez
5a270d4cb4
Add asdf-plugin-version metadata to shims
...
This adds `asdf-plugin-version` to all generated shims.
This metadata is used to remove the shim when necessary.
2017-07-27 01:26:38 +02:00
Daniel Perez
78fbbaf584
Merge pull request #183 from doughsay/master
...
Use a git repository for installing plugins.
2017-07-26 18:49:15 +02:00
Fernando
1e9166e9bc
Merge branch 'master' into which_command
2017-05-15 15:40:42 -03:00
Daniel Perez
82f399c6b3
Merge pull request #164 from ypid/docs_improvements
...
Docs improvements
2017-05-15 11:17:25 +09:00
Chris Dosé
f399254219
code review feedback: fix all shellcheck warnings.
2017-04-19 20:37:03 -07:00
Chris Dosé
20cdbfe701
Use a git repository for installing plugins.
2017-03-26 16:44:22 -07:00
Trevor Brown
2ca517d8c1
Add tests for the update command. Use sed instead of tail -r to get the
...
latest tag from the list of sorted tags.
The setup code for these tests isn't ideal. It would be nice not to have
to worry about the remote. Without the 'origin' remote set the Travis
build would fail though.
2017-03-17 21:19:46 -04:00
Trevor Brown
8534ca2858
Finish the update command.
2017-03-17 13:07:30 -04:00
Trevor Brown
492ea04cc0
Add update command.
2017-03-17 13:07:30 -04:00
Fernando Crespo
2260d22d79
Add missing function checking for deprecated plugins
2017-03-16 00:57:07 -03:00
Akash Manohar
7c2514d93b
Merge pull request #171 from asdf-vm/test-for-plugin-license
...
Update the plugin-test command to assert that the plugin license file exists
2017-03-16 06:50:30 +05:30
Fernando Crespo
9657ff690e
Add path to which command
2017-03-14 11:09:34 -03:00
Fernando Crespo
9d347deb0b
Add plugin name to command
2017-03-14 11:08:18 -03:00
Fernando Crespo
3e72800052
add parameter to current version
2017-03-14 11:07:22 -03:00
Fernando Crespo
1ea63ec257
Fix extra paren
2017-03-14 11:06:07 -03:00
Fernando Crespo
5ccb7d75f5
Fix no install_type
2017-03-14 11:04:30 -03:00
Fernando Crespo
fb4e263598
Initial support for which command
2017-03-14 10:56:59 -03:00
Bjørn Madsen
887de73b79
Avoid error when sysctl is missing hw.ncpu key
2017-03-13 09:13:42 +01:00
Trevor Brown
3c449deb97
Update the plugin-test command to assert that the plugin license file exists and is not empty.
2017-03-07 17:33:41 -05:00
Robin Schneider
7c30e6f9d2
Fix typo: seperated → separated
...
Automated edit command: git ls-files -z "$(git rev-parse --show-toplevel)" | xargs --null -I '{}' find '{}' -type f -print0 | xargs --null sed --in-place --regexp-extended 's/seperated/separated/g;'
2017-02-20 19:44:44 +01:00
Trevor Brown
85e56753fd
Don't change the permissions on files in a plugin's bin directory.
2017-02-11 20:46:34 -05:00
Trevor Brown
dff1149fb5
Check permissions on scripts in plugins' bin directories when testing them.
2016-12-21 20:58:11 -05: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
Trevor Brown
127f926391
Merge pull request #123 from vic/shims-remove
...
Shims remove on latest version uninstall (depends on #122 ).
2016-12-16 15:47:24 -07:00
Victor Borja
a1bc06fb82
Bugfix: ref:
and path:
versions are not read correctly.
...
Before this patch, with a `.tool-versions` file like:
```
lfe ref:master
```
`get_preset_version_for` would return `ref` instead of `ref:master`.
Same was happening for `path:` versions. Actually there was PR #95
on which I based my changes but instead of using space as delimiter
I went for using `|` which would be a lot more weird if present as
part of a file path, this also allows to specify paths which have
spaces which are much more frequent.
Closes #94 #95
2016-12-15 06:12:09 -06:00
Victor Borja
d1f0b64c2f
Remove shims on uninstall or plugin-remove
...
- Remove plugin shims when last version is uninstalled.
- Remove shims on plugin-remove
When the latest version of a tool is uninstalled,
Remove the plugin shims (marked with metadata at #122 )
Also found lots of missing tests and added them.
Closes #67
2016-12-15 06:05:23 -06:00
Victor Borja
6ddf1e5e49
Fix shim args again.
...
Broken here:
00bf082b31 (diff-774f80a035a812fafdd48ebc7c8b6af4R54)
but this time we have tests to notice:
https://travis-ci.org/asdf-vm/asdf/builds/184202823
2016-12-15 05:34:35 -06:00
Tadeu Andrade
6d78d4fd80
Reverting slash on quotes
2016-12-13 10:03:28 -03:00
mtatheonly
e04fe9ed54
Update reshim.sh
...
Removing unneeded slash from shim writing.
2016-12-12 18:54:52 -03: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
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
Daniel Perez
95bde8e86f
Fix local and global commands to accept multiple versions
2016-08-30 19:13:10 -04:00
Stratus3D
12a6316e4c
Fix whitespace bug in 'asdf local'.
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
511535b750
Add warning to when using deprecated plugins
...
This can be removed after we've given users enough time to update.
2016-08-14 09:10:24 +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