@vortex.so/cli
Version:
CLI to interact with Vortex.
25 lines (22 loc) • 455 B
JavaScript
import { defineCommand } from 'citty';
import 'node:process';
import c from 'chalk';
import 'figures';
import 'jiti';
import { Log } from '../../../utils/log/index.mjs';
const log = new Log("Ping");
const pingCommand = defineCommand({
meta: {
name: "ping",
description: c.dim("Ping.")
},
args: {},
async run() {
try {
log.ok("Pong!");
} catch (error) {
log.fail(error?.message);
}
}
});
export { pingCommand };