Files
jj-command-line/src/hooks/prerun/customPreRun.ts
T
2024-11-09 19:15:29 -05:00

31 lines
473 B
TypeScript

import { Hook, Command } from '@oclif/core'
import fs from 'fs-extra';
import _ from 'lodash';
import { jjEnsure } from '@helpers/jjEnsure';
import { jjConfigs } from '@src/index';
const hook: Hook<'prerun'> = async function (opts) {
await jjEnsure(opts)
Object.assign(process.env, jjConfigs.processEnvs);
// srmVersion
// console.log(opts.Command.flags)
// console.log(opts.Command.args)
// console.log(opts.Command.name)
}
export default hook