WIP
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import {Command} from '@oclif/core'
|
||||
import { jjConfigs } from '@src/index'
|
||||
|
||||
export default class World extends Command {
|
||||
static args = {}
|
||||
@@ -14,6 +15,9 @@ hello world! (./src/commands/hello/world.ts)
|
||||
static flags = {}
|
||||
|
||||
async run(): Promise<void> {
|
||||
console.log(jjConfigs)
|
||||
this.log('hello world! (./src/commands/hello/world.ts)')
|
||||
this.warn('warn')
|
||||
this.debug('jjjjjjj')
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,10 +1,15 @@
|
||||
import { Hook, Command } from '@oclif/core'
|
||||
import fs from 'fs-extra';
|
||||
import _ from 'lodash';
|
||||
import { jjEnsure } from '@helpers/jjEnsure';
|
||||
|
||||
|
||||
const hook: Hook<'prerun'> = async function (opts) {
|
||||
|
||||
|
||||
|
||||
await jjEnsure(opts)
|
||||
|
||||
|
||||
// srmVersion
|
||||
// console.log(opts.Command.flags)
|
||||
|
||||
+3
-1
@@ -1,3 +1,5 @@
|
||||
#!/usr/bin/env bun
|
||||
|
||||
export {run} from '@oclif/core'
|
||||
export const jjConfigs: any = {}
|
||||
|
||||
export { run } from '@oclif/core'
|
||||
|
||||
Reference in New Issue
Block a user