Trevor Brown
2951011090
feat(golang-rewrite): set variables for bats integration tests
2024-12-18 11:32:00 -05:00
Edwin Kofler
19515eda3b
fix: warn if plugin does not support keeping downloads if configured ( #1644 )
2024-01-10 00:06:35 +11:00
Edwin Kofler
bbcbddcdd4
fix: Better handling with paths that include spaces ( #1485 )
2023-03-24 12:37:23 +00:00
Edwin Kofler
22be95e68d
test: vaidate Bats minimum required version in tests ( #1460 )
2023-01-28 21:57:39 +11:00
Edwin Kofler
df154edc25
test: better isolate Git in test suite ( #1454 )
2023-01-27 23:09:43 +11:00
Mark Yen
39c9999519
fix: ensure shims get created when data dir has spaces ( #996 )
2021-07-20 14:21:39 +10:00
Alberto de Murga
664d82ed8a
feat: asdf latest defer to plugin to determine the latest version ( #938 )
...
Co-authored-by: James Hegedus <jthegedus@hey.com>
2021-07-07 12:51:19 +10:00
Matt
a7d3661f6c
fix: insert error handling in list-all & download plugin scripts ( #881 )
2021-05-19 19:51:45 +10:00
James Hegedus
456d8e36ca
fix: <plugin update all> to latest commit on default branch for each plugin ( #800 )
2021-03-02 17:37:05 +11:00
Trevor Brown
d65283548f
Fix formatting issue
2020-05-08 14:15:21 -04:00
Trevor Brown
2a058af9eb
Merge branch 'master' into tb/keep-source
2020-05-08 10:21:59 -04:00
Jochen Schalanda
95d4c07294
Set Git user and email in tests
2020-03-21 15:12:01 +01:00
Jochen Schalanda
57186be6d9
Support customizing plugin-add and plugin-remove
...
* Add support for custom `plugin-add` and `plugin-remove` in plugins
* Add configurable command hooks for plugin installation and removal
```shell
pre_asdf_plugin_remove = echo will remove plugin ${1}
pre_asdf_plugin_remove_foo = echo will remove plugin foo
post_asdf_plugin_remove = echo removed plugin ${1}
post_asdf_plugin_remove_foo = echo removed plugin foo
```
Closes #670
2020-03-21 14:59:33 +01:00
Trevor Brown
7a05244ece
Add legacy plugin fixture
2020-03-06 19:13:53 -05:00
Trevor Brown
52cbf1165c
Add .bash file extensions to files containing code executed by Bash
2020-03-02 12:48:05 -05:00
Trevor Brown
6d8d77f51d
Unset ASDF_DIR variable before running tests
2020-02-04 11:23:09 -05:00
Victor Hugo Borja
b8dc5f1604
Run shfmt on bash files
2019-11-29 10:15:38 -06:00
Victor Hugo Borja
e968fe6142
Subcommand-aware command line interface.
2019-11-27 12:17:17 -06:00
Victor Hugo Borja
0260c442cc
Test to ensure asdf exec
and asdf env
use plugin custom exec-env
2019-01-21 01:33:52 -06:00
Victor Hugo Borja
ab59e5618f
Move common functionality to utils.sh
...
- Make shim-exec, shim-env, and which use the same logic to look for commands
- Make sure shim-exec and which use a plugin exec-path hook as documented
(the hook takes a relative path to the executable and returns also
a relative path, possibly modified)
- Fix shellchecks
2019-01-20 14:02:22 -06: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
Trevor Brown
8bcf8caba4
Write test for the exec-path functionality in the which command
2019-01-05 10:54:02 -05:00
Matt Wean
c468ae7d6a
Add another test for the ASDF_DATA_DIR functionality.
2018-09-18 20:21:46 -04:00
Trevor Brown
1b44fa7549
Fix shellcheck warnings.
2018-06-16 15:26:02 -04:00
Jonathan Knapp
85550c8c0c
Remove extra, unnecessary quoting
2017-10-02 09:51:07 -04:00
Jonathan Knapp
808a8d48b7
Fix many shellcheck issues; ignore a few others
2017-09-04 10:09:47 -04: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
23f92987c0
Start adding tests for system version
2017-03-17 22:00:38 -04: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
Daniel Perez
3af5d21067
Set ASDF_CONCURRENCY when installing
2016-07-01 16:42:59 +09:00