Skip to content

CLI feature: generate commands for shell to source for environment #1

Description

@marktsuchida

cjdk env should print something like

CJDK_ORIGINAL_JAVA_HOME="$JAVA_HOME"
CJDK_ORIGINAL_PATH="$PATH"
JAVA_HOME=/path/to/jdk
PATH="$JAVA_HOME/bin:$PATH"

except that the output should be tailored to the current shell/cmd.exe/powershell. In bash, this can be used as

. $(cjdk --jdk 17 env)

cjdk env --restore should restore the previous state.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions