Skip to main content
Glama
utils.js765 B
'use strict'; var execSync = require('child_process').execSync; var chalk = require('chalk'); var path = require('path'); var cordovaPath = path.resolve(__dirname, '../node_modules/.bin/', 'cordova'); var mobileBuildPath = 'phonegap/build'; var yesno = { name: 'yesno', message: 'are you sure?', validator: /y[es]*|no$/, warning: 'Must respond yes or no', default: 'no' }; function shell(command, options) { console.log(`Executing: ${chalk.green(command)}`); var defaultOptions = {stdio: [0,1,2]}; execSync(command, Object.assign(defaultOptions, options)); } function cordova(command) { shell(`${cordovaPath} ${command}`, {cwd: mobileBuildPath}); } module.exports = { prompts: { yesno: yesno }, shell: shell, cordova: cordova, };

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/fefergrgrgrg/cloudflare-api-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server