UNPKG

@remote.it/cli

Version:

remote.it cross-platform command line

20 lines (16 loc) 464 B
import { GluegunToolbox } from 'gluegun' import { Environment } from '@remote.it/core' export default { name: 'info', alias: 'i', description: 'Returns information about the current system.', async run(toolbox: GluegunToolbox) { const { print } = toolbox const env = Environment.toObject() delete env.networkInterfaces delete env.cpus // Gluebox doesn't know fancy supports anything yet // @ts-ignore print.fancy(env) }, }