@olenbetong/appframe-cli 4.4.3 → 4.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/cli/af-apply.js +1 -1
- package/cli/af-deploy.js +1 -1
- package/cli/af-list.js +1 -1
- package/cli/af-namespace-to-prod.js +5 -4
- package/cli/lib/getServerFromOptions.js +1 -1
- package/package.json +6 -6
- package/src/af-apply.ts +1 -1
- package/src/af-deploy.ts +1 -1
- package/src/af-list.ts +1 -1
- package/src/af-namespace-to-prod.ts +5 -4
- package/src/lib/getServerFromOptions.ts +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 4.4.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @olenbetong/appframe-data@1.2.5
|
|
8
|
+
- @olenbetong/appframe-updater@0.4.5
|
|
9
|
+
|
|
10
|
+
## 4.4.4
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [7738eb1]
|
|
15
|
+
- @olenbetong/appframe-data@1.2.4
|
|
16
|
+
- @olenbetong/appframe-updater@0.4.4
|
|
17
|
+
|
|
3
18
|
## 4.4.3
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/cli/af-apply.js
CHANGED
package/cli/af-deploy.js
CHANGED
package/cli/af-list.js
CHANGED
|
@@ -14,7 +14,7 @@ async function getType(options) {
|
|
|
14
14
|
if (options.type) return options.type;
|
|
15
15
|
if (isInteractive) {
|
|
16
16
|
let result = await inquirer.prompt({
|
|
17
|
-
type: "
|
|
17
|
+
type: "select",
|
|
18
18
|
name: "type",
|
|
19
19
|
message: "Which type of transactions do you want to list?",
|
|
20
20
|
choices: [
|
|
@@ -23,7 +23,7 @@ async function runStageOperations(namespace, hostname, operations = ["download"]
|
|
|
23
23
|
for (let transactions = await server.getTransactions("apply", namespace); transactions.length > 0; transactions = await server.getTransactions("apply", namespace)) {
|
|
24
24
|
listTransactions(transactions);
|
|
25
25
|
let { action } = await inquirer.prompt({
|
|
26
|
-
type: "
|
|
26
|
+
type: "select",
|
|
27
27
|
name: "action",
|
|
28
28
|
message: "Are you sure you want to apply these transactions? (y)",
|
|
29
29
|
choices: [
|
|
@@ -51,7 +51,7 @@ async function runStageOperations(namespace, hostname, operations = ["download"]
|
|
|
51
51
|
for (let transactions = await server.getTransactions("deploy", namespace); transactions.length > 0; transactions = await server.getTransactions("deploy", namespace)) {
|
|
52
52
|
listTransactions(transactions);
|
|
53
53
|
let { action } = await inquirer.prompt({
|
|
54
|
-
type: "
|
|
54
|
+
type: "select",
|
|
55
55
|
name: "action",
|
|
56
56
|
message: "Are you sure you want to deploy these transactions? (y)",
|
|
57
57
|
choices: [
|
|
@@ -106,7 +106,7 @@ async function publishFromDev(namespaceArg, options) {
|
|
|
106
106
|
break;
|
|
107
107
|
}
|
|
108
108
|
let { action } = await inquirer.prompt({
|
|
109
|
-
type: "
|
|
109
|
+
type: "select",
|
|
110
110
|
name: "action",
|
|
111
111
|
message: "Are you sure you want to put these transactions on hold? (y)",
|
|
112
112
|
choices: [
|
|
@@ -135,7 +135,8 @@ async function publishFromDev(namespaceArg, options) {
|
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
console.log("");
|
|
138
|
-
|
|
138
|
+
let transactionStatus = options.apply ? "applied" : "downloaded";
|
|
139
|
+
console.log(`Transactions ${transactionStatus} on ${chalk.green("test.obet.no")}`);
|
|
139
140
|
if (!options.apply) {
|
|
140
141
|
console.log(`Run ${chalk.blue(`af apply ${namespace}`)} to apply updates.`);
|
|
141
142
|
}
|
|
@@ -3,7 +3,7 @@ import inquirer from "inquirer";
|
|
|
3
3
|
export async function getServerFromOptions(options) {
|
|
4
4
|
if (options.server) return;
|
|
5
5
|
let { server } = await inquirer.prompt({
|
|
6
|
-
type: "
|
|
6
|
+
type: "select",
|
|
7
7
|
name: "server",
|
|
8
8
|
message: "Select server to connect to",
|
|
9
9
|
choices: [
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"af": "./cli/af.js"
|
|
6
6
|
},
|
|
7
7
|
"type": "module",
|
|
8
|
-
"version": "4.4.
|
|
8
|
+
"version": "4.4.5",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"keywords": [
|
|
11
11
|
"appframe",
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
"@types/d3": "^7.4.3",
|
|
17
17
|
"@types/degit": "^2.8.6",
|
|
18
18
|
"@types/inquirer": "^9.0.9",
|
|
19
|
-
"@types/react": "
|
|
19
|
+
"@types/react": "19.2.7",
|
|
20
20
|
"@types/semver": "^7.7.1",
|
|
21
|
-
"esbuild": "0.
|
|
21
|
+
"esbuild": "0.27.0",
|
|
22
22
|
"tough-cookie": "^6.0.0"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@biomejs/biome": "2.3.
|
|
25
|
+
"@biomejs/biome": "2.3.7",
|
|
26
26
|
"chalk": "^5.6.2",
|
|
27
27
|
"commander": "^14.0.1",
|
|
28
28
|
"compare-versions": "^6.1.1",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"semver": "^7.7.2",
|
|
41
41
|
"signal-exit": "^4.1.0",
|
|
42
42
|
"typescript": "^5.9.3",
|
|
43
|
-
"@olenbetong/appframe-data": "1.2.
|
|
44
|
-
"@olenbetong/appframe-updater": "0.4.
|
|
43
|
+
"@olenbetong/appframe-data": "1.2.5",
|
|
44
|
+
"@olenbetong/appframe-updater": "0.4.5"
|
|
45
45
|
},
|
|
46
46
|
"optionalDependencies": {
|
|
47
47
|
"keytar": "^8.3.1"
|
package/src/af-apply.ts
CHANGED
package/src/af-deploy.ts
CHANGED
|
@@ -30,7 +30,7 @@ async function deployTransactions(namespaceArg: string, options: { server: strin
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
let { action } = await inquirer.prompt({
|
|
33
|
-
type: "
|
|
33
|
+
type: "select",
|
|
34
34
|
name: "action",
|
|
35
35
|
message: "Are you sure you want to deploy these transactions? (n)",
|
|
36
36
|
choices: [
|
package/src/af-list.ts
CHANGED
|
@@ -17,7 +17,7 @@ async function getType(options: { type?: "apply" | "deploy" }) {
|
|
|
17
17
|
|
|
18
18
|
if (isInteractive) {
|
|
19
19
|
let result = await inquirer.prompt({
|
|
20
|
-
type: "
|
|
20
|
+
type: "select",
|
|
21
21
|
name: "type",
|
|
22
22
|
message: "Which type of transactions do you want to list?",
|
|
23
23
|
choices: [
|
|
@@ -33,7 +33,7 @@ async function runStageOperations(namespace: string, hostname: string, operation
|
|
|
33
33
|
) {
|
|
34
34
|
listTransactions(transactions);
|
|
35
35
|
let { action } = await inquirer.prompt({
|
|
36
|
-
type: "
|
|
36
|
+
type: "select",
|
|
37
37
|
name: "action",
|
|
38
38
|
message: "Are you sure you want to apply these transactions? (y)",
|
|
39
39
|
choices: [
|
|
@@ -70,7 +70,7 @@ async function runStageOperations(namespace: string, hostname: string, operation
|
|
|
70
70
|
) {
|
|
71
71
|
listTransactions(transactions);
|
|
72
72
|
let { action } = await inquirer.prompt({
|
|
73
|
-
type: "
|
|
73
|
+
type: "select",
|
|
74
74
|
name: "action",
|
|
75
75
|
message: "Are you sure you want to deploy these transactions? (y)",
|
|
76
76
|
choices: [
|
|
@@ -139,7 +139,7 @@ async function publishFromDev(
|
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
let { action } = await inquirer.prompt({
|
|
142
|
-
type: "
|
|
142
|
+
type: "select",
|
|
143
143
|
name: "action",
|
|
144
144
|
message: "Are you sure you want to put these transactions on hold? (y)",
|
|
145
145
|
choices: [
|
|
@@ -173,7 +173,8 @@ async function publishFromDev(
|
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
console.log("");
|
|
176
|
-
|
|
176
|
+
let transactionStatus = options.apply ? "applied" : "downloaded";
|
|
177
|
+
console.log(`Transactions ${transactionStatus} on ${chalk.green("test.obet.no")}`);
|
|
177
178
|
if (!options.apply) {
|
|
178
179
|
console.log(`Run ${chalk.blue(`af apply ${namespace}`)} to apply updates.`);
|
|
179
180
|
}
|