This commit is contained in:
2024-11-30 17:14:20 -05:00
parent 942d15d2fc
commit 457282e309
4 changed files with 15 additions and 3 deletions
+5
View File
@@ -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 <COMMAND>"));
console.group(chalk.blue.italic.bold("Commands:"));
+5
View File
@@ -189,6 +189,11 @@ export const jjEnsure = async ({ returnProcessEnvs = false }) => {
desc: "clean-workspace",
keys: [],
},
{
key: "listOfEnvs",
desc: "listOfEnvs",
keys: [],
},
],
scriptToRun: {
prePath: "__JJ_SOURCE_DIR__",
+1 -1
View File
@@ -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
+4 -2
View File
@@ -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",