Commit Graph

367 Commits

Author SHA1 Message Date
Trevor Brown
e79016add3
Merge pull request #630 from lalloni/default-to-empty-asdf-data-dir
Defaults to empty ASDF_DATA_DIR
2020-02-06 07:15:07 -05:00
Trevor Brown
e4a9ad6e58
Merge pull request #649 from asdf-vm/tb/misc-test-improvements
Misc. Test Improvements
2020-02-05 07:51:42 -05:00
Trevor Brown
1dc939bb52 Simplify asdf_data_dir function 2020-02-05 07:47:02 -05:00
Trevor Brown
f787b719ac
Merge pull request #640 from asdf-vm/improve-export-shell
Fix asdf shell xx --unset for fish
2020-02-04 08:17:54 -05:00
Trevor Brown
a6b8996f2a Address shellcheck warnings 2020-01-29 08:04:39 -05:00
Daniel Perez
e53de6726f Fix asdf shell xx --unset for fish 2020-01-25 20:42:43 +00:00
Pablo Lalloni
95e0f534e6 Defaults to empty ASDF_DATA_DIR
If ASDF_DATA_DIR variable is undefined it will assign an empty value to
it so bash instances running with set -o nounset can run the script
without error.
2019-12-31 09:58:05 -03:00
Luke Bonaccorsi
c728018627 Fix issue with preset version warning assuming that the shim name and plugin name are the same 2019-12-20 17:26:00 +00:00
Victor Borja
ff57001691
Merge pull request #609 from tejanium/clearer-warning
Clarify instructions when <version> of a <shim_name> is missing.
2019-12-13 12:02:16 -06:00
Teja Sophista
026aa78f35 Output different warning for empty and missing version
1. when `.tool-versions` is not set
2. when `.tool-versions` set version that is not installed
2019-12-04 14:18:58 +00:00
Victor Hugo Borja
5ab01f49df Allow eval only on asdf function at lib/asdf.sh.
It's needed for `asdf shell` command.
2019-12-03 11:04:04 -06:00
Teja Sophista
c9014666e2 Clarify instructions when <version> of a <shim_name> is missing. 2019-12-03 14:21:31 +00:00
Timo Sand
d76f639c75
Fix shell compatibility with ZSH
`command eval` does not work in ZSH
2019-12-01 20:41:28 +01:00
Victor Hugo Borja
04b61ae62c Support latest:<version> on plugin-test 2019-11-30 15:13:41 -06:00
Victor Hugo Borja
c986bc9726 Fix plugin update command to check for at least one arg 2019-11-30 15:03:30 -06:00
Victor Hugo Borja
3d3595c7a3 Improvements to asdf plugin commands. 2019-11-30 14:18:37 -06:00
Victor Hugo Borja
1d48d8dbfb Dont use pull on command-update 2019-11-29 10:42:22 -06:00
Victor Hugo Borja
f0bdbe1d89 fix shellcheck on command-help 2019-11-29 10:20:03 -06:00
Victor Hugo Borja
b8dc5f1604 Run shfmt on bash files 2019-11-29 10:15:38 -06:00
Victor Hugo Borja
3f0fe57db9 Let asdf help show plugin commands when available.
Also fix `asdf list all` to work as subcommand. Fixes #602
2019-11-29 07:42:55 -06:00
Victor Hugo Borja
1be6614aa7 Add shellcheck source comments 2019-11-27 12:29:04 -06:00
Victor Hugo Borja
e968fe6142 Subcommand-aware command line interface. 2019-11-27 12:17:17 -06:00
Victor Hugo Borja
4939e24c90 Make asdf plugin test determine plugin version with asdf latest
Fixes #541
2019-11-26 22:23:27 -06:00
Victor Hugo Borja
2ea3d2017f asdf --version shows git-revision when asdf_dir is a git clone.
This will help people running on asdf master be able to report
issues and maintainers can know the precise git commit where the
error was reported.

See #589
2019-11-26 22:08:45 -06:00
Victor Borja
4279549530
Merge pull request #583 from android10/master
asdf_data_dir() returning incorrect path when running as root.
2019-11-25 12:23:17 -06:00
Victor Hugo Borja
70099027c2 Move plugin extension command into it's own file.
Add a test for calling default command with arguments.
2019-11-25 12:07:55 -06:00
Kevin Lane
9fd7b83973
Add credit to xxenv-latest in comments 2019-11-22 10:37:53 -08:00
Kevin Lane
d2324e36e7
Fix shellcheck errors 2019-11-22 10:37:53 -08:00
Kevin Lane
301cd3db3f
Add support for installing the latest stable version of a tool 2019-11-22 10:37:53 -08:00
Kevin Lane
36ba38d921
Add asdf latest command to show latest stable version of a tool 2019-11-22 10:37:52 -08:00
Kevin Lane
292d5951bd
Add ability to show available versions that begin with a given string 2019-11-22 10:37:46 -08:00
Trevor Brown
1580310064 Fix sed command so it handles paths correctly
Fixes #559
2019-10-31 10:56:41 -04:00
Trevor Brown
72e876b0ae Handle dashes in executable names properly 2019-10-24 12:05:44 -04:00
Fernando Cejas
ded3a41808 Simplify whether asdf is running with privileges. 2019-10-23 14:31:43 +02:00
Fernando Cejas
598503ef74 Fix constant expression. 2019-10-23 13:36:58 +02:00
Fernando Cejas
fc1c586ca6 Add a method to detect whether asdf runs with privileges. 2019-10-23 13:26:33 +02:00
Trevor Brown
edb5839239 Rename find_version to find_versions since it can return multiple versions 2019-10-22 19:03:05 -04:00
Trevor Brown
cea9b9574f Install multiple versions when multiple versions are present in a .tool-versions file 2019-10-22 18:58:30 -04:00
Fernando Cejas
c7c053e41e Fix ASDF_DATA_DIR not being set. 2019-10-22 16:45:56 +02:00
Fernando Cejas
a888e48bd2 Fix asdf data directory. 2019-10-22 15:01:55 +02:00
OZAWA Sakuro
b26f56692d Surround mutually exclusive arguments with curly braces 2019-09-02 11:55:09 +09:00
OZAWA Sakuro
503263a68d Add --unset option to shell command 2019-08-17 22:46:00 +09:00
Trevor Brown
75bd04a464
Merge pull request #560 from asdf-vm/tb/env-path-fix
with_plugin_env PATH fix
2019-08-14 20:36:07 -04:00
Trevor Brown
20522bb2e2 Correct bug in path logic that added current directory to PATH 2019-08-14 20:21:57 -04:00
Kevin Lundberg
fd3faf8084 removing unneeded flag on a copy action 2019-07-31 21:42:43 -04:00
Kevin Lundberg
1862ff6eee Only copy the necessary things to the test area 2019-07-31 21:18:54 -04:00
Kevin Lundberg
c77ee57fe2 Fix for asdf plugin-test when installed with brew, and a minor logic fix to a warning 2019-07-30 23:33:07 -04:00
Spencer Carlson
8865f7a66d add quite flag to git clone 2019-07-05 16:38:33 -07:00
Trevor Brown
3516c08c6b Fix failing test 2019-06-17 20:38:17 -04:00
Leonid Shevtsov
d1f09c3fca Change asdf install to loop through available plugins 2019-05-31 08:32:12 +03:00