Skip to content

Sdkman

Index

sdkman::clean_output

Strip ANSI escape codes and blank lines from stdin (used to clean sdk command output). Output: stdout — cleaned text shellcheck disable=SC2120 # called with no args by callers, shellcheck can't see all call sites

Function has no arguments.

sdkman::update_metadata

Refresh SDKMAN metadata (runs 'sdk update' and cleans output). shellcheck disable=SC2120 # called with no args by callers, shellcheck can't see all call sites

Function has no arguments.

sdkman::get_sdkmanrc_file_java_artifact_id

Print the java artifact ID declared in an .sdkmanrc file. Output: stdout — artifact ID string (e.g. "21.0.3-tem")

Arguments

  • $1 (.sdkmanrc): file path

sdkman::overwrite_sdkmanrc_file_java_artifact_id

Overwrite the java artifact ID in an .sdkmanrc file.

Arguments

  • $1 (.sdkmanrc): file path
  • $2 (new): artifact ID (e.g. "21.0.3-tem")

sdkman::rewrite_sdkmanrc_file_java_version

Update the java entry in an .sdkmanrc file to the latest installed Temurin JDK for the same major version. No-ops if the currently declared artifact is already installed.

Arguments

  • $1 (.sdkmanrc): file path

sdkman::list_all_sdkmanrc_files

Find and print the paths of all .sdkmanrc files under $HOME. Output: stdout — sorted list of .sdkmanrc file paths, one per line shellcheck disable=SC2120 # called with no args by callers, shellcheck can't see all call sites

Function has no arguments.

sdkman::rewrite_sdkmanrc_file_java_versions

Update the java entry in every .sdkmanrc file found under $HOME. shellcheck disable=SC2120 # called with no args by callers, shellcheck can't see all call sites

Function has no arguments.