Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ import {fileURLToPath} from 'node:url'

const gitignorePath = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '.gitignore')

export default [includeIgnoreFile(gitignorePath), ...oclif, prettier]
const config = [includeIgnoreFile(gitignorePath), ...oclif, prettier]

export default config
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"@types/node": "^18",
"chai": "^4.5.0",
"commitlint": "^19",
"eslint": "^9.39.5",
"eslint-config-oclif": "^6.0.179",
"eslint": "^10.8.1",
"eslint-config-oclif": "^7.1.4",
"eslint-config-prettier": "^10.1.8",
"husky": "^9.1.7",
"lint-staged": "^15",
Expand Down
2 changes: 2 additions & 0 deletions src/commands/help.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ export default class HelpCommand extends Command {
static args = {
command: Args.string({description: 'Command to show help for.', required: false}),
}

static description = 'Display help for <%= config.bin %>.'
static flags = {
'nested-commands': Flags.boolean({
char: 'n',
description: 'Include all nested commands in the output.',
}),
}

static strict = false

async run(): Promise<void> {
Expand Down
2 changes: 1 addition & 1 deletion test/commands/help.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {runCommand} from '@oclif/test'
import {expect} from 'chai'
import {readFileSync} from 'node:fs'

const {version: VERSION} = JSON.parse(readFileSync('package.json', 'utf8'))
const {version: VERSION} = JSON.parse(readFileSync('package.json', 'utf8')) as {version: string}
const UA = `@oclif/plugin-help/${VERSION} ${process.platform}-${process.arch} node-${process.version}`

describe('help command', () => {
Expand Down
Loading
Loading