import { switchToClusterFromEnv } from 'src/lib/cluster' ; import { addCeloEnvMiddleware , CeloEnvArgv } from 'src/lib/env-utils' ; import yargs from 'yargs' ; export const command = 'switch' ; export const describe = 'command for switching to a particular environment' ; export const builder = ( argv ) => addCeloEnvMiddleware ( argv ) ; export const handler = async ( argv ) => { await switchToClusterFromEnv ( argv . celoEnv , false , true ) ; } ;