vodia-teams
Version:
Microsoft Teams Direct Routing configuration tool
40 lines (32 loc) • 930 B
JavaScript
// Import the main workflow script
const { runWorkflow } = require('./lib/workflow');
// Get command line arguments
const args = process.argv.slice(2);
const argv = {};
for (let i = 0; i < args.length; i++) {
const arg = args[i];
if (arg.startsWith('--')) {
const key = arg.slice(2);
const value = args[i + 1] && !args[i + 1].startsWith('--') ? args[i + 1] : true;
argv[key] = value;
if (value !== true) i++;
}
}
// Show help text if requested
if (argv.help || argv.h) {
console.log(`
Vodia Teams Configuration Tool
Usage:
vodia-teams --sbc <sbc.domain.com> --domain <domain.com>
Options:
--sbc Session Border Controller FQDN
--domain Domain name for Microsoft 365 tenant
--help Show this help text
Example:
vodia-teams --sbc sbc.example.com --domain example.com
`);
process.exit(0);
}
// Run the workflow with command line arguments
runWorkflow(argv);