Felipe Santos
1ea407c8e5
Fix update warn on new shells for update cmd ( #888 )
2021-03-31 11:43:30 +01:00
Oliver Weiler
7547946d94
Remove platform specific code, make tests more deterministic ( #889 )
...
* Remove platform-specific code for use command
* Remove platform-specific code for current command
* Make tests more deterministic
2021-03-31 10:01:16 +01:00
helpermethod
40f184411c
Remove unnecessary changes
2021-03-30 22:47:21 +01:00
helpermethod
e2fdf6bd44
Revert sdkman-use.sh to upstream/master
2021-03-30 22:47:21 +01:00
helpermethod
ffb9787124
Revert changes to sdkman-use.sh
2021-03-30 22:47:21 +01:00
helpermethod
1f617cbe75
Always use the uname stub
2021-03-30 22:47:21 +01:00
helpermethod
d2d2aee464
Only move setting the executable bit to the build method
2021-03-30 22:47:21 +01:00
helpermethod
eeda00a15b
Initialise uname stub in prepareIn but don't set executable bit
2021-03-30 22:47:21 +01:00
helpermethod
d275d945ae
Fix broken bugs on Mac OS X
2021-03-30 22:47:21 +01:00
Marco Vermeulen
0d91e98401
Remove docker login from travis pipeline.
2021-03-26 12:05:57 +00:00
Marco Vermeulen
ee5ca3b656
Remove mongo dependency from travis pipeline.
2021-03-26 12:05:57 +00:00
Marco Vermeulen
e3c33d02bc
Add zsh completion.
2021-03-26 12:05:57 +00:00
Oliver Weiler
574d292059
Add autocompletion for use subcommand ( #879 )
...
* Add autocompletion for the use subcommand
* Fix typo
Co-authored-by: Oliver Weiler <oliver.weiler@meinestadt.de >
2021-03-07 16:41:29 +01:00
Marco Vermeulen
36b96a9ed0
Login to dockerhub in CI.
2021-03-07 13:32:21 +00:00
Raphael
bceaaac6c0
Fix: always env clear when leaving dir ( #878 )
...
* Fix: always env clear when leaving dir
The previous logic did not clear the environment when the user switches between two directories with `.sdmanrc`.
Now we always clear (if an environment was set), and _then_ load the new one, if any.
* Add test for switching auto_env directories.
2021-03-04 13:32:25 +00:00
Marco Vermeulen
52cb0a6c7c
Fix broken tests on Mac OSX.
2021-02-21 15:04:18 +00:00
Oliver Weiler
f90f516e95
Add edit command to help output and Bash completion ( #875 )
...
* Add edit command to help output
* Add edit command to Bash completion
* Rename edit command to config
Co-authored-by: Oliver Weiler <oliver.weiler@meinestadt.de >
2021-02-17 19:28:24 +00:00
Oliver Weiler
ea1f67e950
Add edit command ( #874 )
...
* Add edit command
* Fix failing test
* Prevent EDITOR from being overwritten
* Split up error message
* Add missing test case
Co-authored-by: Oliver Weiler <oliver.weiler@meinestadt.de >
2021-02-16 20:58:29 +00:00
Marco Vermeulen
e88bb5131b
Further improvements to upgrade wording.
2021-02-13 21:49:24 +00:00
Marco Vermeulen
514ea4b672
Upgrade to Gradle 6.8.2
2021-02-13 21:43:47 +00:00
Marco Vermeulen
3682db3477
Improve wording of upgrade command.
2021-02-13 21:39:46 +00:00
Marco Vermeulen
97f166cc70
Improve output for default, home and use tips.
2021-02-13 21:15:43 +00:00
Marco Vermeulen
9e35cdb1b4
Revert "Synced error message with __sdkman_determine_version"
...
This reverts commit 750bea8b
2021-02-13 14:50:56 +00:00
Oliver Weiler
1fde6ae603
Redirect output to stderr
2021-02-04 17:14:46 +00:00
Oliver Weiler
2d205e2c0d
Add contrib folder to ZIP archive
2021-02-04 17:14:46 +00:00
Oliver Weiler
338f1e135b
Revert changes to assemble task
2021-02-04 17:14:46 +00:00
Oliver Weiler
cf83795bdd
Add contrib folder
2021-02-04 17:14:46 +00:00
Oliver Weiler
d8c17d3445
Remove completion for current
2021-02-04 17:14:46 +00:00
Oliver Weiler
a3f33560fd
Add instructions to sdk completion output on how to setup Bash completion
2021-02-04 17:14:46 +00:00
Oliver Weiler
54e9cd8efb
Make completion arguments mandatory
2021-02-04 17:14:46 +00:00
Oliver Weiler
dd4eeb7238
Remove exclamation mark
2021-02-04 17:14:46 +00:00
Oliver Weiler
39357899e1
Improve output for zsh
2021-02-04 17:14:46 +00:00
Oliver Weiler
a51cf5f118
Add shell identifier
2021-02-04 17:14:46 +00:00
Oliver Weiler
fed400ca75
Add completion subcommand to help output
2021-02-04 17:14:46 +00:00
Oliver Weiler
03ac5aca61
Indent completion function
2021-02-04 17:14:46 +00:00
Oliver Weiler
391c3f258b
Fix broken filename
2021-02-04 17:14:46 +00:00
Oliver Weiler
b257917e3a
Add completion subcommand
2021-02-04 17:14:46 +00:00
Gerry Tan
750bea8bd7
Synced error message with __sdkman_determine_version
2021-02-03 22:23:29 +00:00
Gerry Tan
617da42f37
Improved error message when candidate version not found
...
The message now adds an sdk install command to inform user how to correct the error.
This is useful when auto env is enabled, and user not aware their colleague has updated the candidate version.
See more discussion about this PR in this Slack thread: https://sdkman.slack.com/archives/CJK9DMV6V/p1611405973006900
2021-02-03 22:23:29 +00:00
Felipe Santos
7f177bc20d
Also fixes the mv commands
2021-02-03 20:24:09 +00:00
Felipe Santos
4dd4845533
Fix rm asking to remove file on some zsh
2021-02-03 20:24:09 +00:00
Oliver Weiler
fc1564242e
Fix wrong assertions
2021-02-03 20:20:08 +00:00
Oliver Weiler
520fb0d26a
Remove multiline flag
2021-02-03 20:20:08 +00:00
Oliver Weiler
08be7a091d
Add test which verifies sdk env executes after executing sdk env clear
2021-02-03 20:20:08 +00:00
Oliver Weiler
0d9791f9c4
Export SDKMAN_OLD_PWD unconditionally
2021-02-03 20:20:08 +00:00
Marco Vermeulen
f6ee7927c7
Add support for Rosetta 2 on Silicon Mac.
...
This will allow users of the new Mac arm64 architecture to keep using
the x86_64 java binaries through the Rosetta 2 compatiblity layer. It
relies on the `sdkman_rosetta2_compatible` configuration to be set to
`true` in their `.sdkman/etc/config` file.
2021-01-21 16:19:24 +00:00
Marco Vermeulen
45c1d9dfe1
Fix x86_64 machine name for Linux and Darwin.
2020-12-29 23:04:09 +00:00
Marco Vermeulen
d2400a5cad
Remove debug echo in init file.
2020-12-27 23:09:17 +00:00
Marco Vermeulen
0bda51f1b9
Improve platform inference in shell initialisation.
2020-12-27 22:36:30 +00:00
Oliver Weiler
54d2ab865f
Add sdk env install to usage instructions
2020-12-26 08:30:32 +00:00