This commit is contained in:
2024-11-09 19:15:29 -05:00
parent 6d6e63ea0d
commit 23e234eac0
13 changed files with 460 additions and 9 deletions
+11 -1
View File
@@ -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
View File
@@ -1,5 +1,7 @@
#!/usr/bin/env bun
export const jjConfigs: any = {}
export const jjConfigs: any = {
processEnvs: {}
}
export { run } from '@oclif/core'