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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions