Skip to content

Commit

Permalink
Extending the simulator
Browse files Browse the repository at this point in the history
  • Loading branch information
thedrlambda committed Dec 2, 2023
1 parent 157db22 commit 3a0adbb
Show file tree
Hide file tree
Showing 7 changed files with 267 additions and 42 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 1.6.9

- Add support for local envvars defined in [group]/env.kv in the format "KEY=value\n"
- Experiment with sessionId
- Don't ask about accessibility and environment when deleting envvars

# 1.6.6

- Fix .ssh/config when calling `register` multiple times
Expand Down
117 changes: 115 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@merrymake/cli",
"version": "1.6.8",
"version": "1.6.9",
"description": "",
"main": "index.js",
"scripts": {
Expand All @@ -26,10 +26,12 @@
"@merrymake/detect-project-type": "^1.2.0",
"@merrymake/ext2mime": "^1.0.0",
"express": "^4.17.3",
"express-session": "^1.17.3",
"uuid": "^9.0.0"
},
"devDependencies": {
"@types/express": "^4.17.13",
"@types/express-session": "^1.17.10",
"@types/node": "^16.7.4",
"@types/uuid": "^9.0.1",
"pkg": "^5.8.1"
Expand Down
5 changes: 4 additions & 1 deletion questions.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,10 @@ function envvar_key(org, group, overwrite, key, currentValue) {
return __awaiter(this, void 0, void 0, function* () {
try {
let value = yield (0, prompt_1.shortText)("Value", "The value...", "");
return envvar_key_value(org, group, overwrite, key, value);
if (value !== "")
return envvar_key_value(org, group, overwrite, key, value);
else
return envvar_key_value_access_visible(org, group, overwrite, key, value, ["--prod", "--test"], "--public");
}
catch (e) {
throw e;
Expand Down
13 changes: 12 additions & 1 deletion questions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,18 @@ async function envvar_key(
) {
try {
let value = await shortText("Value", "The value...", "");
return envvar_key_value(org, group, overwrite, key, value);
if (value !== "")
return envvar_key_value(org, group, overwrite, key, value);
else
return envvar_key_value_access_visible(
org,
group,
overwrite,
key,
value,
["--prod", "--test"],
"--public"
);
} catch (e) {
throw e;
}
Expand Down
Loading

0 comments on commit 3a0adbb

Please sign in to comment.