ide/deploy/info.js (12 lines of code) (raw):
import { getOpenServerlessConfig} from './client.js';
import {program} from "commander";
import process from "process";
program
.description('Deployer info')
.argument('<param>', 'The key to query')
.argument('<param>', 'The default value')
.parse(process.argv);
const key = program.args[0];
const def = program.args[1] || '';
const paramValue = getOpenServerlessConfig(key,def);
console.log(paramValue);