Commit Graph

1652 Commits

Author SHA1 Message Date
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
James Hegedus
a409b334a9
Merge branch 'master' into master 2020-02-14 17:14:33 +11:00
Paul
18b07ecaa6
Default ZSH_VERSION to empty string. (#656)
This avoids borking when a user has `set -u` (a.k.a. the `nounset`
option) enabled.
2020-02-14 16:50:11 +11:00
Raul de Melo
4911678c5b docs: update example with maintained project url (#652) 2020-02-10 08:00:41 +11:00
Trevor Brown
29e9b46ac5
Merge pull request #654 from asdf-vm/tb/fix-path-version
Fix Path Versions
2020-02-08 07:54:46 -05:00
Trevor Brown
43bd2d2cb5 Address linting errors 2020-02-07 22:51:03 -05:00
Trevor Brown
c0222b0b4e Add back in support for path versions in shim code 2020-02-07 22:50:21 -05:00
Trevor Brown
e4ddf560e8 Move function definitions out of with_shim_executable function 2020-02-07 22:32:04 -05:00
Trevor Brown
42182f31c4 Add test for shim exec of path versions 2020-02-07 22:32:04 -05:00
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
6d8d77f51d Unset ASDF_DIR variable before running tests 2020-02-04 11:23:09 -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
79ffc55f82 Add another test for asdf_data_dir function 2020-01-31 14:03:33 -05:00
Jesse Jackson
3a4342a6be Update examples using subcommands
Replace references to aliases in the form of
`command-subcommand` with `command subcommand`
2020-01-30 15:59:05 -06:00