Commit Graph

13 Commits

Author SHA1 Message Date
Edwin Kofler
4dd190466a
fix!: 0 exit code for success when adding an existing plugin (#1598) 2023-07-26 21:42:08 +10:00
Edwin Kofler
90ead5ea0a
chore: Fix ShellCheck errors in tests (#1459)
Closes https://github.com/asdf-vm/asdf/issues/1396
2023-01-27 23:17:41 +11:00
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
196a05b2dc
fix: force lwrcase plugin name fix capitalization mismatch errs (#1400)
Co-authored-by: Trevor Brown <Stratus3D@users.noreply.github.com>
Closes https://github.com/asdf-vm/asdf/issues/816
2022-12-29 13:12:47 +11:00
Jonathan Beverly (jrbeverly)
18caea3eb7
feat: Disable short-name repository with config value (#1227)
Co-authored-by: jthegedus <jthegedus@hey.com>
2022-06-28 09:47:49 +10:00
James Hegedus
21bc411915
ci: add latest OSs to testing matrix, bump BATS, shfmt, shellcheck (#1260)
* ci: add latest OSs to testing matrix
* ci: bump bats & shellcheck & shfmt
* chore: format with latest shfmt
2022-06-24 19:20:27 +10:00
Trevor Brown
92d005dacd
fix: update plugin-add regex to support other languages (#1241)
[:alpha:] and [:digit:] character classes support characters from other
languages whereas ranges like a-z and 0-9 may not.

Fixes #1237
2022-06-07 08:43:02 -04:00
James Hegedus
7697e6e344
fix: regex validate plugin names on plugin add cmd (#1010) 2021-07-30 08:49:01 +10:00
Trevor Brown
0e0922a014 Add unit test for plugin add exit code 2020-03-31 09:20:10 -04:00
Jochen Schalanda
3c3f0e67f6
Rename custom plugin-add/plugin-remove for plugins (#684)
Rename custom scripts for `plugin-add` and `plugin-remove` phases in plugins to make clear when they are executed:

`plugin-add` -> `post-plugin-add`
`plugin-remove` -> `pre-plugin-remove`
2020-03-22 12:57:54 +11: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
Victor Hugo Borja
3d3595c7a3 Improvements to asdf plugin commands. 2019-11-30 14:18:37 -06:00