Edwin Kofler
28b348a041
chore: Fix ShellCheck errors in tests ( #1450 )
2023-01-23 15:29:18 +11:00
Edwin Kofler
b5e981cf1d
chore: Fix ShellCheck errors in tests ( #1449 )
2023-01-23 10:36:47 +11:00
Edwin Kofler
407a6696c0
chore: fix ShellCheck errors in tests ( #1433 )
2023-01-22 20:20:23 +11:00
Chris Rose
41162849cf
fix: clarify the wording when no version is set ( #1088 )
...
Co-authored-by: Chris Rose <offline@offby1.net>
Co-authored-by: jthegedus <jthegedus@hey.com>
2021-11-14 14:35:42 +11:00
Aaron Jensen
d2b7e2fceb
Update no plugin installed error message ( #818 )
2020-12-21 11:00:09 +11:00
James Hegedus
b178cb07a7
fix: rm asdf current header row for now ( #793 )
2020-09-02 09:11:07 +10:00
James Hegedus
e9c149ea21
fix: incorrect version output in asdf current ( #746 )
2020-08-29 09:09:22 +10:00
Alexandre ZANNI
f5c7dae331
fix: asdf shell command docs & help output ( #737 )
...
Co-authored-by: James Hegedus <james@jthegedus.com>
2020-06-13 10:43:52 +10:00
Daniel Perez
b8ee616318
Fix current when .tool-versions contains comments
2019-03-31 20:39:36 +01:00
Victor Hugo Borja
9cac0ac50a
Faster exec times. Load commands only when nedded.
...
When testing, use `run asdf` to actually test the command
as the user would invoke it, so that we might catch possible
errors on `bin/asdf`.
2019-01-20 02:13:20 -06:00
Daniel Perez
18587d4d6f
Fix current behavior when multiple versions of a plugin are set
2018-11-10 11:32:02 +00:00
Trevor Brown
f708e3c15f
Merge pull request #371 from phunehehe/version-set-by
...
commands/current: add space before parenthesis
2018-10-10 18:21:46 -04:00
Hoang Xuan Phu
1330083229
commands/current: add space before parenthesis
...
It seems to have been lost in 88d47bbd69
.
Probably by accident?
I also pulled the literal bits into the format string. It looks more
readable to me that way. I'm happy to remove that if it's not desired.
2018-10-10 17:28:23 -04:00
Trevor Brown
af5393d563
Move current_command test into current_command.bats.
2018-10-07 14:22:31 -04:00
Melissa Xie
f79dda865a
Include plugin name in error message if plugin doesn't exist
...
Previously, if we ran a command like `asdf install` and we encountered a
plugin that didn't exist, asdf produces an error saying "No such
plugin". Without knowing which plugin it could be referring too, we'd
have to manually go through each plugin in `.tool-versions` to find the
culprit.
With this commit, we'll now also include the plugin name as part of the
messaging for easier debugging.
2018-04-30 12:49:40 -04:00
Edoardo Tenani
e710959d1b
adapt test to new error code
2018-04-09 20:35:51 +02:00
AJ Foster
eb5e5b780c
Refactor "no version set" message to utilities
2018-02-25 18:33:42 -05:00
AJ Foster
c2fb6a3140
Escape backticks in command suggestion
2018-02-25 00:50:46 -05:00
AJ Foster
f15a0c9de3
Suggest action when no version is set
2018-02-25 00:40:26 -05:00
Trevor Brown
8abcceb8c0
Add test for tool name matching.
2018-02-11 17:28:29 -05:00
jthegedus
f99bdc75c0
add --urls
flag for asdf list-plugins
...
Fixed tests due to use of printf
2018-01-14 19:38:00 +11:00
Victor Borja
e74c472829
Test current command with no installed version
2017-09-03 22:20:35 -05:00
Daniel Perez
8af4b3377c
List all installed plugins when no argument is passed to current
2017-08-19 13:56:28 +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
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