id = "jenv" name = "jEnv" homepage = "https://www.jenv.be" description = "jEnv is a command line tool to help you forget how to set the JAVA_HOME environment variable." executables = ["jenv"] [dotfiles] # libexec/jenv: JENV_ROOT="${HOME}/.jenv" when the variable is unset. # libexec/jenv-global: JENV_VERSION_FILE="${JENV_ROOT}/version" — the global # Java version, written by `jenv global` and read on every shim resolution. It # is the one thing under JENV_ROOT the user chose rather than the installer. paths = ["~/.jenv/version"] # The rest of JENV_ROOT is the tool's own checkout and per-machine state: the # shims it regenerates, the plugins it clones, and versions/, which is symlinks # to the JDKs installed on this machine. exclude = [ "~/.jenv/bin/", "~/.jenv/shims/", "~/.jenv/versions/", "~/.jenv/plugins/", ] secret = [] # Read by every shim, so a rewrite between invocations is harmless. side_effect = false # No machine_lines: the file holds one version name, and wanting the same Java # everywhere is why the user set it. [commands] format = 1 label = "jEnv" description = "Choose the global or per-directory Java version and list the versions jEnv knows. Adding JDKs and plugin management are left out." quality = "ai-draft" base = "fig:jenv" parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = false } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/jenv.ts" license = "MIT" [[commands.subcommand]] path = ["versions"] label = "List Java versions" [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/jenv.ts" license = "MIT" [[commands.subcommand.field]] id = "bare" label = "Names only" type = "boolean" option = ["--bare"] description = "Display only the version." sources = ["fig"] [[commands.subcommand.field]] id = "verbose" label = "Verbose" type = "boolean" option = ["--verbose"] description = "Display verbose output." sources = ["fig"] [[commands.subcommand.task]] id = "list" label = "List versions" fields = ["bare", "verbose"] required = [] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["bare", "verbose"] [[commands.subcommand]] path = ["global"] label = "Set global Java version" [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/jenv.ts" license = "MIT" [[commands.subcommand.field]] id = "version" label = "Version" type = "string" position = 0 description = "Version name as shown by jenv versions." sources = ["fig"] [[commands.subcommand.task]] id = "global" label = "Set global version" fields = ["version"] required = ["version"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["version"] [[commands.subcommand]] path = ["local"] label = "Set local Java version" description = "Writes a .java-version file in the current directory." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/jenv.ts" license = "MIT" [[commands.subcommand.field]] id = "version" label = "Version" type = "string" position = 0 description = "Version name as shown by jenv versions." sources = ["fig"] [[commands.subcommand.field]] id = "unset" label = "Remove local setting" type = "boolean" option = ["--unset"] description = "Remove local jEnv settings." effect = "delete" sources = ["fig"] [[commands.subcommand.task]] id = "local" label = "Set local version" fields = ["version"] required = ["version"] [[commands.subcommand.task]] id = "unset" label = "Unset local version" set = { unset = [true] } fields = ["unset"] required = [] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["version", "unset"]