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
d6b01e35ec
Simplify resolve_symlink function.
2018-10-07 21:47:57 -04:00
Trevor Brown
e0cdec39f9
Address shellcheck errors in resolve_symlink function.
2018-10-07 21:47:57 -04:00
Trevor Brown
4c4590c6e6
Update resolve_symlink function so it always returns absolute paths.
2018-10-07 21:47:57 -04:00
Trevor Brown
e095ed5efa
Don't install system versions.
2018-10-07 14:35:36 -04:00
Jose Luis Salas
448d3215d8
Fix asdf current behaviour
...
Closes : #353
2018-10-04 21:00:29 +02:00
Jose Luis Salas
5acef7c9bf
Remove get_install_type and fix indentation
2018-09-27 22:18:36 +02:00
Diego Nogueira Teixeira
28c0576d17
Fix reshim to create shim only for executable files and not directories.
2018-09-18 10:38:22 -03:00
Trevor Brown
2e27ceb090
Merge pull request #335 from josacar/user-install-directory
...
Install data outside asdf installation directory
2018-09-16 22:36:08 -04:00
Jose Luis Salas
d1782f456e
Retrieve asdf_data_dir from environment variable
2018-09-16 18:39:21 +02:00
Victor Hugo Borja
a4fc43e682
plugin-test: check Auth is used when list-all uses Github API
...
Many plugins were having this problem where they rely on accessing
GitHub's API for listing versions from some repo releases. But not
setting an Authorization token for `curl`, causes the test to fail.
We now detect that if the plugin `list-all` looks like accessing
`api.github.com` and if so, we also try to guess if the Authroization
header will be set. If not, we fail the test and head the plugin author
to some documentation on how to add it.
Hope this reduces the number of failures due to GitHub API rate
limiting on travis.
2018-08-29 23:19:30 -07:00
Victor Hugo Borja
950853d9e6
test plugin in subshell and from isolated asdf
...
The subshell sources the isolated asdf environment, making the asdf
command available. In some plugin tests we were having failures do
to the asdf bin not set on PATH.
2018-08-29 23:16:01 -07:00
Jose Luis Salas
c86707c55f
Add config option to install plugins in $HOME/.asdf
2018-08-11 15:37:56 +02:00
Trevor Brown
bcdc5e0ba7
Switch to single quotes for sed regex.
2018-06-17 19:31:36 -04:00
Trevor Brown
001cd6022f
Ignore shellcheck warning.
2018-06-16 23:07:17 -04:00
Trevor Brown
631ad8a005
Resolve symlink paths before altering .tool-version files.
2018-06-16 22:59:37 -04:00
Trevor Brown
c1ce9de4d4
Merge pull request #331 from brennanfee/fix-330-asdf-list
...
Fix for #330 - "asdf list" spacing
2018-06-16 15:30:35 -04:00
Trevor Brown
1b44fa7549
Fix shellcheck warnings.
2018-06-16 15:26:02 -04:00
Brennan Fee
8a018715c7
Fix for #330 - "asdf list" spacing
...
In order to make the output of "asdf list" a bit easier to read, this commit adds two spaces to the front of each version being written so as to indent them under the plugin.
2018-05-31 11:45:20 -05:00
Brennan Fee
4cb89b152c
Fix another spot for plugin-name env var lookup
...
After fixing #319 I wondered if there were any other spots where the same/similar bug existed. I found one other location at line 126 in utils.sh.
2018-05-31 10:46:04 -05:00
Brennan Fee
67bc9539d1
Fix for #319
...
Fixed #319 by forcing all dashes to underscores in the plugin name.
Shell variables don't allow dash.
2018-05-30 20:02:23 -05:00
Michael Davis
3f51d3a5ab
Change exit code from 0 -> 2
2018-05-29 21:47:46 -05:00
Michael Davis
c4a2ffb356
Make exit code of an already installed plugin 0
...
When plugin-add is called on a plugin that's already installed, asdf
will return 0.
2018-05-25 13:26:48 -05: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
hlhr
e1a4ff244f
list command without parameter lists all packages with versions
2018-04-16 18:37:22 -04:00
Edoardo Tenani
23bf434dbf
use exit code 126 when version is not set
2018-04-05 23:59:31 +02:00
Neil Martinsen-Burrell
c7a8226db5
Print to stderr one level up to make tests pass
2018-03-30 12:09:56 -05:00
Neil Martinsen-Burrell
c1e50c2894
Print "No version set" message to stderr
2018-03-30 11:15:53 -05:00
james.bunch
d62fa098c1
AZDF -> ASDF environment variable name spelling
...
change all instances of `AZDF` to read `ASDF` instead, to bring the
variable names in line with the project name
2018-02-27 11:56:04 -08:00
AJ Foster
a195da28c2
Promote which
version check from subshell to enable error emission
2018-02-25 18:34:39 -05:00
AJ Foster
eb5e5b780c
Refactor "no version set" message to utilities
2018-02-25 18:33:42 -05:00
Trevor Brown
9733daafd4
Merge pull request #293 from aj-foster/no-version-errors
...
Suggest action when no version is set
2018-02-25 13:17:20 -05:00
AJ Foster
24a7190505
Specify when a version is set via environment variable
2018-02-25 01:11:16 -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
4efa8a9707
Fix failing test for ASDF_DEFAULT_TOOL_VERSIONS_FILENAME environment variable.
2018-02-12 18:41:27 -05:00
Trevor Brown
ed3a029e86
Merge branch 'master' into env-config-file-location
2018-02-11 17:31:17 -05:00
Trevor Brown
0f48c1861b
Remove unnecessary regex from replacement string in regex command.
2018-02-11 15:12:31 -05:00
jthegedus
8374c227fc
add --urls
flag for asdf list-plugins
...
Fixed tests due to use of printf
2018-02-11 15:04:06 -05:00
jthegedus
afac39f1fd
Fix asdf current
- and it was at this point I realised
2018-02-11 15:04:06 -05:00
jthegedus
b738413949
add indicator if installed on asdf plugin-list-all
2018-02-11 15:04:06 -05:00
jthegedus
c6bc978c26
add escape for \n where necessary
2018-02-11 15:04:06 -05:00
jthegedus
5d523a5b50
Add print repo URLs with asdf plugin-list
and adsf plugin-list-all
...
* Use printf for formatting
* Add error when plugin index at /asdf_dir/repository/plugins is not found
* add example of output to README
2018-02-11 15:04:06 -05:00
Trevor Brown
ee082dc6ee
Address warnings reported by new version of shellcheck.
2018-02-11 15:04:05 -05:00
Mark Villacampa
025bd995d5
add two more cases where we need to specify bening and end of line in the .tool-versions to properly identify plugin names
2017-12-16 02:05:52 +01:00
Mark Villacampa
77ce346578
grep for plugin_name from begining of line
2017-12-15 22:36:24 +01:00
Trevor Brown
8794210b8e
Add 'eval' to list of banned commands.
2017-11-16 22:43:52 -05:00
William Ashton
43fd8c978d
Tell sed to create backup files, and the remove them
...
This seems like the easiest way forward, considering the incompatability between the LInux and MacOS versions of sed.
2017-10-27 10:27:27 -04:00
William Ashton
dc3865c9fd
Prevent sed from creating -e backup files. Fixes #242
2017-10-26 15:58:45 -04:00