This commit is contained in:
2024-11-09 04:17:26 -05:00
parent 9d89825d91
commit 6d6e63ea0d
13 changed files with 180 additions and 24 deletions
+4
View File
@@ -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')
}
}
+5
View File
@@ -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
View File
@@ -1,3 +1,5 @@
#!/usr/bin/env bun
export {run} from '@oclif/core'
export const jjConfigs: any = {}
export { run } from '@oclif/core'