@magda/scripts 5.0.1 → 5.2.0-alpha.0
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/acs-cmd/acs-cmd-admin.js
CHANGED
|
@@ -8,7 +8,7 @@ program
|
|
|
8
8
|
.version(pkg.version)
|
|
9
9
|
.description(
|
|
10
10
|
`A tool for setting / unsetting Admin role / status to a user. Version: ${pkg.version} \n` +
|
|
11
|
-
`Hint: Use 'acs-cmd list users' command to list all users in
|
|
11
|
+
`Hint: Use 'acs-cmd list users' command to list all users in the system`
|
|
12
12
|
)
|
|
13
13
|
.command("set <userId>", "Make a user an admin user")
|
|
14
14
|
.command("unset <userId>", "Remove admin role / status from a user")
|
|
@@ -48,10 +48,16 @@ const output = `-o ${argv.output}`;
|
|
|
48
48
|
|
|
49
49
|
const config = `-c ${argv.config}`;
|
|
50
50
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
try {
|
|
52
|
+
const execOutput = childProcess.execSync(
|
|
53
|
+
`apidoc --debug --private true ${input} -f ".*\.scala$" -f ".*\.ts$" -f ".*\.js$" ${output} ${config}`,
|
|
54
|
+
{ stdio: "pipe" }
|
|
55
|
+
);
|
|
56
|
+
process.stdout.write(execOutput.toString());
|
|
57
|
+
} catch (error) {
|
|
58
|
+
process.stdout.write(error.stdout?.toString() || "");
|
|
59
|
+
process.stdout.write(error.stderr?.toString() || "");
|
|
60
|
+
}
|
|
55
61
|
|
|
56
62
|
// Convert APIDOC to swagger and openapi specs
|
|
57
63
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magda/scripts",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.2.0-alpha.0",
|
|
4
4
|
"description": "Scripts for building, running, and deploying MAGDA",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@magda/esm-utils": "^1.0.1",
|
|
45
|
-
"@magda/typescript-common": "^5.0.
|
|
45
|
+
"@magda/typescript-common": "^5.2.0-alpha.0",
|
|
46
46
|
"ansi-styles": "^3.2.1",
|
|
47
47
|
"apidoc": "https://github.com/magda-io/apidoc",
|
|
48
48
|
"chalk": "^2.4.1",
|