WIP
This commit is contained in:
@@ -2,15 +2,25 @@ 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)
|
||||
|
||||
+3
-1
@@ -1,5 +1,7 @@
|
||||
#!/usr/bin/env bun
|
||||
|
||||
export const jjConfigs: any = {}
|
||||
export const jjConfigs: any = {
|
||||
processEnvs: {}
|
||||
}
|
||||
|
||||
export { run } from '@oclif/core'
|
||||
|
||||
Reference in New Issue
Block a user