@vortex.so/cli
Version:
CLI to interact with Vortex.
32 lines (29 loc) • 838 B
JavaScript
import process from 'node:process';
import { updateFiles } from './ship.files.mjs';
import { getInput } from './ship.input.mjs';
import { Operation } from './ship.operation.mjs';
import { getOutput } from './ship.output.mjs';
import { Log } from '../../utils/log/index.mjs';
const log = new Log("Ship");
async function version() {
const operation = await Operation.start({
release: {
type: "prompt",
preid: "beta"
},
push: false,
files: ["vortex.yaml"],
cwd: process.cwd(),
ignoreScripts: false,
interface: { input: process.stdin, output: process.stdout }
});
try {
await getInput(operation);
await getOutput(operation);
await updateFiles(operation);
log.ok("All done!");
} catch (error) {
log.fail(error?.message || "Something is failed.");
}
}
export { version };