From 457282e309f27dd1f6ca58d4c558f47fcdb4637e Mon Sep 17 00:00:00 2001 From: Jason Jafari Date: Sat, 30 Nov 2024 17:14:20 -0500 Subject: [PATCH] v1.0.19 --- cli/help.ts | 5 +++++ helpers/jjEnsure.ts | 5 +++++ jj.sh | 2 +- package.json | 6 ++++-- 4 files changed, 15 insertions(+), 3 deletions(-) diff --git a/cli/help.ts b/cli/help.ts index b3e126a..d400fe6 100644 --- a/cli/help.ts +++ b/cli/help.ts @@ -72,6 +72,11 @@ const cliHelp = async () => { console.log(packageJasonWorkspace.version); return; } + if (process.env.JJ_CLI_ARG_2 == "listOfEnvs") { + const environments = getJJConfigByKeyChain('environments') + console.log(Object.keys(environments).join("\n")) + return; + } console.log(chalk.blue.italic.bold("Usage: jj ")); console.group(chalk.blue.italic.bold("Commands:")); diff --git a/helpers/jjEnsure.ts b/helpers/jjEnsure.ts index 3d9c6ad..5d357f1 100755 --- a/helpers/jjEnsure.ts +++ b/helpers/jjEnsure.ts @@ -189,6 +189,11 @@ export const jjEnsure = async ({ returnProcessEnvs = false }) => { desc: "clean-workspace", keys: [], }, + { + key: "listOfEnvs", + desc: "listOfEnvs", + keys: [], + }, ], scriptToRun: { prePath: "__JJ_SOURCE_DIR__", diff --git a/jj.sh b/jj.sh index 11d5382..5a23a1f 100755 --- a/jj.sh +++ b/jj.sh @@ -63,7 +63,7 @@ if [[ -e ~/.bun/bin/bun ]]; then export PATH="~/.bun/bin:${PATH}" fi -__bunVersionExpect="1.1.36" +__bunVersionExpect="1.1.34" __currentBunVersion=$(bun --version || true) if [[ "$__currentBunVersion" != "${__bunVersionExpect}" ]]; then rm -rf ~/.bun/bin/bun diff --git a/package.json b/package.json index 17d32ff..3a4bc45 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "jj-command-line", "description": "jj cli", - "version": "1.0.18", + "version": "1.0.19", "author": "Jason Jafari", "bin": { "jj": "./jj.sh" @@ -42,7 +42,9 @@ "node": ">=18.0.0" }, "homepage": "https://github.com/https://github.com/jafarijason/jj/jj", - "keywords": ["oclif"], + "keywords": [ + "oclif" + ], "license": "MIT", "main": "src/index.ts", "type": "commonjs",