Skip to content

Commit

Permalink
test: yarn upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Oct 8, 2024
1 parent f293453 commit 258333a
Show file tree
Hide file tree
Showing 2 changed files with 1,783 additions and 2,151 deletions.
13 changes: 2 additions & 11 deletions src/commands/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default class Commands extends Command {
const {flags} = await this.parse(Commands)

let commands = this.getCommands()
console.error('commands before', commands)

if (!flags.hidden) {
commands = commands.filter((c) => !c.hidden)
}
Expand All @@ -85,20 +85,11 @@ export default class Commands extends Command {
usage: (typeof command.usage === 'string' && _.template(command.usage)({command, config})) || undefined,
}),
)
console.error('commands after', commands)

if (flags.tree) {
const tree = createTree(commands)
this.log(treeify(tree))
} else if (!this.jsonEnabled()) {
console.error(
'commands for table',
commands.map((c) => ({
id: toConfiguredId(c.id, config),
plugin: c.pluginName,
summary: c.summary ?? c.description,
type: c.pluginType,
})),
)
printTable({
borderStyle: 'vertical-with-outline',
columns: (flags.columns ?? ['id', 'summary', ...(flags.extended ? ['plugin', 'type'] : [])]) as Column[],
Expand Down
Loading

0 comments on commit 258333a

Please sign in to comment.