Skip to content

Commit

Permalink
Publish
Browse files Browse the repository at this point in the history
  • Loading branch information
thedrlambda committed Jul 4, 2024
1 parent 30446e8 commit 94243a0
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 9 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@
## Fixes and improvements
-

# 4.0.1
## Fixes and improvements
- `key` command column width fixed
- Show newly created API keys
- "smoke test" => "init run" in `envvar` command
- "Rapids" => "rapids" in `repo` command

# 4.0.0
## Breaking changes
- Reworked everything to fit with Merrymake 2.0

# 3.4.0
## Added features
- Add timezone to `cron`
Expand Down
Binary file modified dist/windows.zip
Binary file not shown.
5 changes: 3 additions & 2 deletions newCommands/apikey.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ function do_key_create(organizationId, description, duration) {
const reply = yield (0, utils_1.sshReq)(...cmd);
if (reply.length !== 8)
throw reply;
(0, prompt_1.output)(`Created apikey ${description !== "" ? `'${description}'` : ""}: ${prompt_1.YELLOW}${reply}${prompt_1.NORMAL_COLOR}\n`);
const apikeyId = reply;
return apikeyId;
}
Expand Down Expand Up @@ -111,7 +112,7 @@ function key(organizationId) {
return {
long: x.id,
text: `${x.id}${(0, executors_1.alignLeft)(n, Math.max(process_1.stdout.getWindowSize()[0] -
36 -
8 -
23 -
"─┼──┼─".length -
" ".length, 12))}${ds}`,
Expand All @@ -129,7 +130,7 @@ function key(organizationId) {
tableHeader =
"\n" +
(0, executors_1.printTableHeader)(" ", {
Key: 36,
Key: 8,
Description: -12,
"Expiry time": 23,
});
Expand Down
10 changes: 8 additions & 2 deletions newCommands/apikey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
NORMAL_COLOR,
Option,
RED,
YELLOW,
choice,
output,
shortText,
Expand All @@ -26,6 +27,11 @@ export async function do_key_create(
if (description !== "") cmd.push(`--description`, description);
const reply = await sshReq(...cmd);
if (reply.length !== 8) throw reply;
output(
`Created apikey ${
description !== "" ? `'${description}'` : ""
}: ${YELLOW}${reply}${NORMAL_COLOR}\n`
);
const apikeyId = reply;
return apikeyId;
} catch (e) {
Expand Down Expand Up @@ -128,7 +134,7 @@ export async function key(organizationId: OrganizationId) {
n,
Math.max(
stdout.getWindowSize()[0] -
36 -
8 -
23 -
"─┼──┼─".length -
" ".length,
Expand All @@ -152,7 +158,7 @@ export async function key(organizationId: OrganizationId) {
tableHeader =
"\n" +
printTableHeader(" ", {
Key: 36,
Key: 8,
Description: -12,
"Expiry time": 23,
});
Expand Down
2 changes: 1 addition & 1 deletion newCommands/envvar.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function envvar_key_visible_value(pathToOrganization, organizationId, serviceGro
{
long: "both",
short: "b",
text: "accessible in both prod and smoke test",
text: "accessible in both prod and init run",
action: () => envvar_key_value_access_visible(pathToOrganization, organizationId, serviceGroupId, key, value, ["--inProduction", "--inInitRun"], secret),
},
{
Expand Down
2 changes: 1 addition & 1 deletion newCommands/envvar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function envvar_key_visible_value(
{
long: "both",
short: "b",
text: "accessible in both prod and smoke test",
text: "accessible in both prod and init run",
action: () =>
envvar_key_value_access_visible(
pathToOrganization,
Expand Down
2 changes: 1 addition & 1 deletion newCommands/repo.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ function after_service_deploy(pathToService, organizationId) {
return (0, prompt_1.choice)("Would you like to post and event to the Rapids? (Trigger the service)", [
{
long: "post",
text: "post an event to the Rapids",
text: "post an event to the rapids",
action: () => (0, post_1.post)(organizationId),
},
], { disableAutoPick: true });
Expand Down
2 changes: 1 addition & 1 deletion newCommands/repo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ async function after_service_deploy(
[
{
long: "post",
text: "post an event to the Rapids",
text: "post an event to the rapids",
action: () => post(organizationId),
},
],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@merrymake/cli",
"version": "4.0.0",
"version": "4.0.1",
"description": "",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 94243a0

Please sign in to comment.