UNPKG

@oada/cli

Version:

CLI OADA client

19 lines 613 B
import { expandPath, output } from '../../io.js'; import Command from '../../BaseCommand.js'; import getConn from '../../connections.js'; class List extends Command { async run() { const { argv: paths } = await this.parse(List); const conn = getConn(this.iconfig); await output('-', async function* () { for (const p of paths) { yield* expandPath(conn, `${p}/*`); } }, this.iconfig); } } List.description = 'perform an "OADA ls"'; List.aliases = ['ls', 'l']; List.strict = false; export default List; //# sourceMappingURL=list.js.map