Commit Graph

967 Commits

Author SHA1 Message Date
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
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
smac89
379d9e48bc source only files ending with .sh 2020-12-22 11:13:48 +00:00
Oliver Weiler
dc2b14d93c Add sdk env install subcommand (#839)
* Add `sdk env install` subcommand
* Add spec for `env install` subcommand



Co-authored-by: Oliver Weiler <oliver.weiler@meinestadt.de>
2020-12-09 19:18:48 +00:00
Marco Vermeulen
c4057ce390 Minor presentation tweaks. 2020-12-05 09:45:35 +00:00
Darshit Patel
49a73bb3fe #827: Add a helpful tip when incorrect version is provided while installation (#828) 2020-12-05 08:35:16 +00:00
Oliver Weiler
b8b856f4a5 Check if the .sdkmanrc in the current directory has already been applied (#833)
Co-authored-by: Oliver Weiler <oliver.weiler@meinestadt.de>
2020-12-01 10:07:14 +00:00
Marco Vermeulen
08b2211eba Change terminal output colour to yellow.
This occurs during the restoring of env default version.
2020-11-24 19:24:00 +00:00
mperezi
108b03f9c3 Ditch Bash dynamic scopes and get back fn params 2020-11-18 14:04:47 +01:00
mperezi
e2b6d6332b Delete comment from chpwd hook function 2020-11-18 13:55:29 +01:00
mperezi
dd125f24f2 Replace literal tmp directory with a random one 2020-11-18 13:54:24 +01:00
mperezi
b51f0076f8 Replace echos with heredoc 2020-11-17 23:44:52 +01:00
mperezi
79354a0ea5 Extract __sdkman_env_each_candidate 2020-11-17 23:34:34 +01:00
mperezi
de1e3131af Improve style & naming 2020-11-17 23:04:12 +01:00
mperezi
2f52cafff1 Use Bash dynamic scopes to remove arguments for subfunctions 2020-11-17 23:01:53 +01:00
mperezi
de91bc378b Validate active environment inside method 2020-11-17 22:35:07 +01:00
mperezi
68911454ff Extract methods 2020-11-17 22:32:04 +01:00
mperezi
17aeb759ea Add missing tests 2020-11-17 16:27:41 +01:00
mperezi
f385aa0dc3 Update help 2020-11-16 17:23:39 +01:00
mperezi
6712429392 Update sdkman_auto_env functions 2020-11-16 15:55:13 +01:00
mperezi
c83f0eff1c Restore default versions of candidates in the environment 2020-11-16 15:55:04 +01:00
mperezi
b73be88b78 Add SDKMAN_ENV to point to the current environment location 2020-11-16 15:54:49 +01:00
Marco Vermeulen
ec96fe835c Tweak help output. 2020-10-10 10:20:17 +01:00
Marco Vermeulen
ca2fef16a5 Reformat flush feature and cleanup. 2020-10-10 09:51:14 +01:00