Commit Graph

1092 Commits

Author SHA1 Message Date
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 Borja
6fa01a6d29
Merge pull request #599 from asdf-vm/show-git-revision
`asdf --version` shows git-revision when asdf_dir is a git clone.
2019-11-26 22:18:10 -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 Hugo Borja
e72a92d1ef Remove outdated doc about shims metadata. 2019-11-25 14:39:56 -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
3dd35958dd Handle help command and no args given 2019-11-25 12:21:37 -06:00
Victor Hugo Borja
806ea4b16f Add .editorconfig file. 2019-11-25 12:08:31 -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
Victor Hugo Borja
a22733f819 Resolve asdf PLUGIN_NAME default command.
When calling `asdf foo` and the `foo` plugin provides a `bin/default-command`
2019-11-25 02:47:55 -06:00
Victor Borja
3557fdce5f
Merge pull request #597 from asdf-vm/extension-commands
New feature: asdf extension commands
2019-11-25 02:34:13 -06:00
Victor Hugo Borja
0e8e1f8f84 New feature: asdf extension commands
It's possible for plugins to define new asdf commands. This way plugins can extend asdf capabilities or expose utilities related to their managed tool.

For example, a `foo` plugin might expose the command `asdf foo bar` by providing an executable file at `bin/bar`.
If `bin/bar` is a file but has no executable bit set, then its considered a source-able bash script, and will be sourced
with all the functions in `$ASDF_DIR/lib/utils.sh` already loaded.

A good example of this feature is the `nodejs` plugin, where people must import the release team keyring before
installing a nodejs version. People can execute the following command without having to know where exactly is the plugin located.
2019-11-25 02:24:46 -06:00
Victor Borja
fd3469ab60
Merge pull request #575 from klane/install-latest
Add support for installing the latest stable version of a tool
2019-11-22 14:18:46 -06:00
Kevin Lane
a3319235f8
Update CHANGELOG with contributions from #575 2019-11-22 11:34:25 -08:00
Kevin Lane
9fd7b83973
Add credit to xxenv-latest in comments 2019-11-22 10:37:53 -08:00
Kevin Lane
c11409583f
Add unit tests for managing latest stable versions 2019-11-22 10:37:53 -08:00
Kevin Lane
62ef77670d
Fix fish completion to say latest returns a stable version 2019-11-22 10:37:53 -08:00
Kevin Lane
48c53f24bd
Add documentation in core commands for managing latest stable versions 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
Daniel Perez
43d93bdb50
Merge pull request #595 from jmaroeder/patch-1
Fix completion suggestions for OSX / fish
2019-11-18 23:11:38 +00:00
Trevor Brown
345c545f4e
Merge pull request #592 from asdf-vm/Stratus3D-patch-1
Add AppVeyor badge to readme
2019-11-18 08:36:15 -05:00
James Roeder
ac0cd0f4d0
Fix completion for OSX/Fish
OSX `sed` is not GNU `sed`, and doesn't support the `\s` whitespace character sequence. This results in autocompletion suggestions including leading spaces, e.g.,
```
$ asdf local python \ \ 3.8.0
```

Using the POSIX compliant `[[:space:]]` sequence is more compatible, and removes the unnecessary spaces on OSX.
2019-11-13 12:22:08 -05:00
Trevor Brown
c3ad7e0357 Update version to 0.7.5 2019-11-04 19:42:50 -05:00
Trevor Brown
a600925736 Prepare for 0.7.5 version 2019-11-04 19:41:50 -05:00
Trevor Brown
e832c150d2
Add AppVeyor badge to readme 2019-11-02 15:11:20 -04:00
Trevor Brown
0bc07ddfbb
Merge pull request #451 from abhishalya/appveyorCI
appveyor.yml: Add support for Windows
2019-11-02 10:31:05 -04:00
Trevor Brown
d1f36f2f87
Merge pull request #591 from asdf-vm/fix-sed-for-paths
Fix sed command so it handles paths correctly

Fixes #559
2019-10-31 11:57:10 -04:00
Trevor Brown
1580310064 Fix sed command so it handles paths correctly
Fixes #559
2019-10-31 10:56:41 -04:00
Victor Borja
e6909fa3cc
Mention asdf-direnv on shims section.
Many users might want not to use shims and would prefer the asdf environment be automatically set for them when entering the project directory. Add a link to asdf-direnv plugin README for more details on how to integrate asdf with direnv to achieve this.
2019-10-27 11:29:09 -06:00
Trevor Brown
0ce0ff6de1
Merge pull request #589 from asdf-vm/handle-dashes-in-executable-names
Handle dashes in executable names properly
2019-10-24 15:00:15 -04:00
Trevor Brown
72e876b0ae Handle dashes in executable names properly 2019-10-24 12:05:44 -04:00
Trevor Brown
8594f7ab3f
Merge pull request #585 from asdf-vm/fix-multiple-version-install
Fix multiple version install
2019-10-23 08:53:54 -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
Trevor Brown
54ef3befae
Merge pull request #563 from sakuro/add-shell-unset
Add --unset option to shell subcommand
2019-09-04 08:39:49 -04:00
OZAWA Sakuro
bc309c0fe5 Remove quotes from --unset option 2019-09-02 11:55:42 +09:00
OZAWA Sakuro
b26f56692d Surround mutually exclusive arguments with curly braces 2019-09-02 11:55:09 +09:00
Abhinav Kaushlya
7d5d62cdca appveyor.yml: Add support for Windows
This runs the tests on Appveyor CI (basically windows)
so as to keep it from breaking.

Closes https://github.com/asdf-vm/asdf/issues/450
2019-08-24 23:51:20 +05:30
Victor Borja
65e88bb39e
Fix documentation on Shim metadata.
Now the comment should include also the plugin version
2019-08-18 11:09:31 -05:00
OZAWA Sakuro
503263a68d Add --unset option to shell command 2019-08-17 22:46:00 +09:00
Daniel Perez
069db7d6d3
Merge pull request #551 from losvedir/master
Fix PATH spacing issue in asdf.fish
2019-08-16 15:50:43 +01:00
Trevor Brown
58eaad8ebd Update version to 0.7.4 2019-08-14 22:42:05 -04:00
Trevor Brown
cc8c7fb215 Prepare for 0.7.4 release 2019-08-14 22:41:43 -04:00