Commit Graph

1467 Commits

Author SHA1 Message Date
Victor Borja
19acf2d8e7
Merge pull request #688 from PauloRSF/error-fix-plugin-add
Change exit code to 0 and output message to stdout
2020-03-30 17:47:01 -06:00
Paulo Renato
e48ed1c228 Change exit code to 0 and output message to stdout 2020-03-30 16:06:12 -03:00
Trevor Brown
4a3e3d6ebd Update version to 0.7.8 2020-03-23 09:36:32 -04:00
Trevor Brown
f75ecc8769 Prepare for version v0.7.8 2020-03-23 09:36:13 -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
Victor Borja
c1253a8dfe
Merge pull request #683 from joschi/issue-670
Support customizing plugin-add and plugin-remove
2020-03-21 09:47:42 -06:00
Jochen Schalanda
e43d2bc0a6
Revert "Configure Git user and email before running tests"
This reverts commit 12da316af1.
2020-03-21 15:13:00 +01:00
Jochen Schalanda
95d4c07294
Set Git user and email in tests 2020-03-21 15:12:01 +01:00
Jochen Schalanda
12da316af1
Configure Git user and email before running tests 2020-03-21 15:08:57 +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
James Hegedus
3246c26d52
fix: remove automatic compinit (#678)
* fix: remove automatic compinit

Raised by concerns in https://github.com/asdf-vm/asdf/issues/674 about performance implications and unexpected intrusive behaviour

* docs: fix ZSH compinit recommendations

* docs: clarify zsh completions further

* docs: fpath steps and notes on framework plugins

* docs: be verbose in explanation

* fix: remove fpath & compinit calls
2020-03-20 07:37:25 +11:00
Victor Borja
a15cb5bccb
Merge pull request #680 from imbsky/patch-1
Update README.md
2020-03-17 07:52:15 -06:00
Victor Borja
9536de6c4a
Remove old README. 2020-03-16 09:18:23 -06:00
Victor Borja
0dee6a7051
Fixes to extension commands documentation. 2020-03-16 08:28:55 -06:00
Victor Hugo Borja
a26bed6586 Make sure extension commands are properly displayed by asdf help 2020-03-15 11:45:09 -06:00
BSKY
5a30bce1f1
Update README.md 2020-03-15 14:03:21 +09:00
Victor Borja
cdb39caf52
Merge pull request #679 from imbsky/actions-win
Enable Windows tests on GitHub Actions
2020-03-14 22:59:27 -06:00
BSKY
6a870f1bfb Enable Windows tests on GitHub Actions 2020-03-15 13:30:30 +09:00
Trevor Brown
8a5c70b2dd
Merge pull request #676 from joschi/asdf-update-exit-code
Use different exit code if updates are disabled
2020-03-13 08:35:39 -04:00
Jochen Schalanda
609e41e276 Use different exit code if updates are disabled
If asdf-vm was installed with a package manager and the user doesn't
have the necessary permissions to update it with `asdf update`, asdf-vm
emits an informational message and exits with exit code 1.

This makes it hard to programmatically detect whether the update failed
or wasn't even attempted because it's not possible.

With this change, asdf-vm would exit with the exit code 42 if updates are
disabled instead of exit code 1, which signals an error during update.

Refs r-darwish/topgrade#367
2020-03-13 10:14:28 +01:00
Trevor Brown
0fd36881d7
Change bullet point under "Why use asdf-vm?" heading (#675) 2020-03-13 20:03:22 +11:00
Victor Borja
2b22d8bf9f
Merge pull request #668 from lalloni/master
Default to empty version to avoid error on strict mode bash
2020-03-07 08:38:03 -06:00
Pablo Lalloni
4ee4c1431c Default to empty version to avoid error on strict mode bash 2020-03-07 09:26:16 -03:00
Trevor Brown
ac62c7c4d4 Invoke the plugin's download script before invoking the plugin's install script 2020-03-06 19:15:06 -05:00
Trevor Brown
7a05244ece Add legacy plugin fixture 2020-03-06 19:13:53 -05:00
Trevor Brown
91a2a1f7be Add get_download_path function 2020-03-06 18:54:33 -05:00
Trevor Brown
dd608b869c Add documentation on always_keep_download configuration option 2020-03-06 18:03:12 -05:00
Trevor Brown
09df6851dd fixup! Add documentation on new bin/download script 2020-03-06 18:03:12 -05:00
Trevor Brown
7bf33e8dfd Add documentation on new bin/download script 2020-03-06 18:03:12 -05:00
Trevor Brown
4b2b71a070 Update version to 0.7.7 2020-03-04 09:13:43 -05:00
Trevor Brown
50fa3834df
Merge pull request #665 from asdf-vm/tb/prepare-for-v0.7.7
Prepare for tagging of version 0.7.7
2020-03-04 07:35:52 -05:00
Trevor Brown
671416fc85 Prepare for tagging of version 0.7.7 2020-03-03 13:58:05 -05:00
Victor Borja
7cdfc0fa2a
Merge pull request #664 from asdf-vm/tb/file-extensions
Add .bash file extension to files executed by Bash
2020-03-02 14:39:26 -06:00
Trevor Brown
8b90d883ee Require .bash extension for plugin extension commands 2020-03-02 13:13:20 -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
3a7928973a
Merge pull request #660 from asdf-vm/Stratus3D-patch-1
Create SECURITY.md file
2020-02-26 16:45:47 -05:00
Trevor Brown
9275e0cd82
Clarify scope of SECURITY.md
Clarify scope of SECURITY.md, also update my contact info.
2020-02-26 16:40:27 -05:00
Daniel Perez
cc2c0d05bd
Update SECURITY.md
Added my contact info and rephrased a little.
2020-02-25 09:13:00 -08:00
Trevor Brown
3f6be7501e
Create SECURITY.md file
Create SECURITY.md file with list of supported versions and secure contact information for reporting vulnerabilities.
2020-02-25 08:50:45 -05:00
Trevor Brown
5053a82d5a
Merge pull request #544 from philpennock/zsh-completion
zsh-native asdf completion setup
2020-02-24 15:46:33 -05:00
Phil Pennock
f074257aa5 zsh: handle 'foo bar' == 'foo-bar' and latest
asdf now optionally allows git-style 'foo bar' sub-commands, so the
completion system should too.

Implement support for `asdf latest` and `asdf install foo latest`
2020-02-19 18:01:56 -05:00
James Hegedus
73c44e09ad improve zsh docs now we have our own completions 2020-02-19 16:09:06 -05:00
James Hegedus
edc4d4027d rename zsh completions 2020-02-19 16:09:06 -05:00
James Hegedus
367eaa6ec9 edit fpath as was removed in asdf-vm PR #71 2020-02-19 16:08:36 -05:00
Phil Pennock
7dc669c3ec Handle reshim, fix where, be more idiomatic
* Add completion for `reshim`
* Change completion for `where` for the second arg being optional
* Use slightly more idiomatic zsh
2020-02-19 16:06:00 -05:00
Phil Pennock
a8016c321d zsh-native asdf completion setup
Add a zsh-native completion system function for `asdf`.

I too often hit snags with bash completions in zsh, so I bias strongly
towards zsh-native completions.

This needs to end up in `$fpath` with a filename of `_asdf` but it
seemed unfriendly to use that name in this repo, so call it `_asdf.zsh`
and document a symlink.  Mark the file as executable to be compatible
with one convention of "personal functions should only autoload if
executable" (but that's probably so historic that very few people still
use it; I'm one of them, though).
2020-02-19 16:06:00 -05:00
Victor Borja
51104c9cea
Merge pull request #647 from jsejcksn/master
Update examples using subcommands
2020-02-14 14:41:24 -06:00
Victor Borja
543e16ef5b
Merge pull request #657 from asdf-vm/fix/consistent-use-pluginname
fix: consistent use of plugin_name
2020-02-14 14:36:23 -06:00
Victor Borja
62c4fdb163
Merge pull request #623 from jonmast/prevent-exec-recursion
Ignore shim directory for executable lookups
2020-02-14 14:26:03 -06:00
James Hegedus
c69ed91886
fix: consistent use of plugin_name
All other instances of `check_if_plugin_exists` pass the value as `plugin_name`. Minor fix for consistency.
2020-02-14 17:21:58 +11:00