Skip to content

Commit

Permalink
feat(script-get): Make it possible to get only the app script, w/o an…
Browse files Browse the repository at this point in the history
…y log info

Implements #460
  • Loading branch information
Göran Sander committed Apr 22, 2024
1 parent a7d6f99 commit cfdb900
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 48 deletions.
97 changes: 50 additions & 47 deletions .vscode/launch.json
Expand Up @@ -893,39 +893,39 @@
// ------------------------------------
// Delete sessions
// ------------------------------------
"args": [
"session-delete",
"--host",
// "192.168.100.109",
// "192.168.100.110",
"pro2-win1.lab.ptarmiganlabs.net",
// "pro2-win2.lab.ptarmiganlabs.net",
// "--qrs-port",
// "4242",
// "--qps-port",
// "4243",
"--virtual-proxy",
"finance",
// "",

"--host-proxy",
"pro2-win1.lab.ptarmiganlabs.net",
// "pro2-win2.lab.ptarmiganlabs.net",

// "--session-id",
// "d6e457ca-37c9-4f80-91c2-c63d919c97f9",
// "d6e457ca-37c9-4f80-91c2-c63d919c97f8",
// "41904757-d2f5-4f6b-bfd6-3c0e125d3e1c",

//"--session-virtual-proxy",
// "",
//"finance",

"--auth-user-dir",
"LAB",
"--auth-user-id",
"goran"
]
// "args": [
// "session-delete",
// "--host",
// // "192.168.100.109",
// // "192.168.100.110",
// "pro2-win1.lab.ptarmiganlabs.net",
// // "pro2-win2.lab.ptarmiganlabs.net",
// // "--qrs-port",
// // "4242",
// // "--qps-port",
// // "4243",
// "--virtual-proxy",
// "finance",
// // "",

// "--host-proxy",
// "pro2-win1.lab.ptarmiganlabs.net",
// // "pro2-win2.lab.ptarmiganlabs.net",

// // "--session-id",
// // "d6e457ca-37c9-4f80-91c2-c63d919c97f9",
// // "d6e457ca-37c9-4f80-91c2-c63d919c97f8",
// // "41904757-d2f5-4f6b-bfd6-3c0e125d3e1c",

// //"--session-virtual-proxy",
// // "",
// //"finance",

// "--auth-user-dir",
// "LAB",
// "--auth-user-id",
// "goran"
// ]

// ------------------------------------
// Get measure by id
Expand Down Expand Up @@ -1053,33 +1053,36 @@
// ------------------------------------
// Get script
// ------------------------------------
// "args": [
// "script-get",
// "--host",
// "192.168.100.109",
"args": [
"script-get",
"--host",
"192.168.100.109",
// "pro2-win1.lab.ptarmiganlabs.net",

// "--port",
// // "4747",
// "4747",
// "443",

// "--virtual-proxy",
// "jwt",

// "--auth-type",
// "jwt",
// "cert",
// "--auth-jwt",
// "<jwt>",

// "--app-id",
// "deba4bcf-47e4-472e-97b2-4fe8d6498e11",
"--app-id",
"deba4bcf-47e4-472e-97b2-4fe8d6498e11",

// "--auth-user-dir",
// "LAB",
// "--auth-user-id",
// "goran",
"--auth-user-dir",
"LAB",
"--auth-user-id",
"goran",

// "--log-level",
// "info"
// ]
"--log-level",
"info"
]

// ------------------------------------
// Connection test
Expand Down
3 changes: 2 additions & 1 deletion src/lib/cmd/getscript.js
Expand Up @@ -65,7 +65,8 @@ const getScript = async (options) => {
logger.info(`Created date: ${appScript.qMeta.createdDate}`);
logger.info(`Modified date: ${appScript.qMeta.modifiedDate}`);
logger.info('----- End script metadata -----');
logger.info(`\n${appScript.qScript}`);
// eslint-disable-next-line no-console
console.log(`${appScript.qScript}`);
} else {
logger.error(`Failed getting script for app ${options.appId}`);
}
Expand Down

0 comments on commit cfdb900

Please sign in to comment.