import type { CommandModule } from 'yargs'; import { serviceDeploy } from './deploy/service-deploy-command.js'; import { serviceLogs } from './runtime-logs/service-logs-command.js'; import { serviceUndeploy } from './undeploy/service-undeploy-command.js'; export const serviceCommands: CommandModule = { builder: (yargs) => yargs .command( 'deploy', 'Deploy a service through Hosting Service.', serviceDeploy, ) .command( 'undeploy', 'Undeploy a service through Hosting Service.', serviceUndeploy, ) .command( 'logs', 'Read the runtime logs of a deployed service.', serviceLogs, ) .demandCommand(), handler: () => { console.log('Please pick an action related to hosting service command.'); }, };