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