Commit Graph

285 Commits

Author SHA1 Message Date
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
333339b960 Update plugin docs with new legacy file api 2016-08-14 09:10:24 +09:00
Kevin Rockwood
280581c566 Clean up utils
Whitespace and remove dead function
2016-08-14 09:10:24 +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
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
Trevor Brown
c684430cc3 Merge branch 'add-changelog' 2016-08-04 19:24:15 -04:00
Trevor Brown
e31cdbd460 Add CHANGELOG.md with details on 0.1.0 and 0.2.0-dev. 2016-08-04 19:20:53 -04:00
Trevor Brown
e01b242bfa Merge branch 'setup-command-should-use-stable' 2016-08-04 19:17:21 -04:00
Trevor Brown
cf184ce453 Add -dev suffix to version currently in development (0.2.0). 2016-08-04 19:11:26 -04:00
Trevor Brown
c77fa1ab77 Update version in utils.sh. Next release will be 0.2.0. 2016-07-29 19:56:40 -04:00
Trevor Brown
2cb40a720b Update asdf setup command in readme so that the latest tag is checked out. 2016-07-29 19:55:52 -04:00
Daniel Perez
3d5a5b9040 Merge pull request #83 from rockwood/unify_version_getter
Unify Version Getter
2016-07-28 01:44:15 +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
Akash Manohar
e962639048 Merge pull request #78 from duijf/argument-validation. Thank you @duijf ~!
Argument validation
2016-07-03 21:51:29 +05:30
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
1589a03678 Merge pull request #53 from ctreatma/feature/only_pwd
Fix #52: Send any `cd` output to /dev/null
2016-07-02 13:56:41 +09:00
Charles Treatman
1d11a73600 Redirect all output to /dev/null, not just stdout 2016-07-01 19:40:05 -04:00
Daniel Perez
a8f67c9821 Fix issue in install get_concurrency 2016-07-01 18:26:25 +09:00
Akash Manohar
c44d05011d Merge pull request #75 from asdf-vm/make-concurrency
Set ASDF_CONCURRENCY when installing
2016-07-01 14:52:05 +05:30
Daniel Perez
3af5d21067 Set ASDF_CONCURRENCY when installing 2016-07-01 16:42:59 +09:00
Daniel Perez
da1dfb1dba Merge pull request #71 from dbernheisel/master
zsh: remove _asdf completion.
2016-07-01 15:50:20 +09:00
David Bernheisel
29807fd154 zsh: remove _asdf completion. #68 2016-06-29 16:06:33 -04:00
Daniel Perez
3af8a365e7 Merge pull request #69 from tejanium/master
Use bashcompinit instead of compinit for ZSH
2016-06-29 12:55:44 +09:00
Teja Sophista V.R
a2844400f4 use bashcompinit instead of compinit for ZSH 2016-06-27 11:14:12 +07:00
Daniel Perez
f53ee42dc1 Merge pull request #61 from tuvistavie/improve-plugin-test
Improve plugin tests
2016-06-17 18:39:48 +09:00
Daniel Perez
caee08d39b Improve plugin tests 2016-06-17 18:37:26 +09:00
Akash Manohar
7849d3a9aa Merge pull request #63 from Jwashton/master. Thank you @Jwashton ~!
Update README to include fedora package names
2016-06-17 07:09:07 +05:30
William Ashton
cf93b2265e Update README to include fedora package names 2016-06-16 17:14:05 -04:00
Akash Manohar
fe34eda5fe Merge pull request #59 from tuvistavie/add-travis-badges
Add travis badges to README
2016-06-12 14:09:54 +05:30
Daniel Perez
6b51f1b87b Add travis badges to README 2016-06-12 17:10:59 +09:00
Trevor Brown
724a1ab8cc Add Stratus3D to list of maintainers in readme. 2016-05-17 21:46:13 -04: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
d633546bd2 Add local/global commands documentation. 2016-05-14 11:19:49 +09:00
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
dbbb0a5b7c Add maintainers to the README. 2016-05-13 13:06:14 +09:00
Charles Treatman
5e9b1cca77 Fix #52: Send any cd output to /dev/null
Users of `zsh` can define hook functions that execute when
the current directory changes.  If a user has their `zsh`
configured with a hook function that writes to stdout, the
`asdf` setup script will capture that output in addition to
the output of `pwd`, which causes a misconfiguration of the
`PATH` environment variable.

By redirecting the output, if any, of the `cd` command to
`/dev/null`, this ensures that the path to `bin` in `asdf`
is captured correctly regardless of `zsh` configuration.
2016-05-10 15:04:18 -04:00
Daniel Perez
3e31c40020 Make it possible to use fallback versions. 2016-05-04 02:22:48 +09:00
Akash Manohar
0c36c0036d Merge pull request #50 from tuvistavie/fix-local
Fix local command to support legacy files. Thank you @tuvistavie ~!
2016-05-02 21:18:42 +05:30
Daniel Perez
b0513a6da0 Fix local command to support legacy files. 2016-05-03 00:27:52 +09:00
Akash Manohar
c21215771c Merge pull request #47 from asdf-vm/hn/pr-24. Thank you @Stratus3D and @tuvistavie ~!
Check if legacy version file support is enabled before using it
2016-04-26 09:31:51 +05:30
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