UNPKG

@oada/cli

Version:

CLI OADA client

22 lines 691 B
import Command from '../BaseCommand.js'; import getConn from '../connections.js'; import { shell } from '../highlight.js'; const examples = [ shell `$ oada head /bookmarks/does-exist; echo $?\n0`, shell `$ oada head /bookmarks/does-not-exist; echo $?\n1`, ]; class Head extends Command { async run() { const { argv: paths } = await this.parse(Head); const conn = getConn(this.iconfig); for (const path of paths) { await conn.head({ path: `${path}` }); } } } Head.description = 'perform an OADA HEAD'; Head.aliases = ['h', 'HEAD']; Head.examples = examples; Head.strict = false; export default Head; //# sourceMappingURL=head.js.map