Skip to content

Commit

Permalink
fix: added login/logout to dev help listing
Browse files Browse the repository at this point in the history
  • Loading branch information
mkhq committed Apr 5, 2023
1 parent cd7b072 commit e6b3cf7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion core/src/cli/command-line.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ const directInputKeys = [
]

const hideCommands = ["config analytics-enabled", "tools"]
const overrideHiddenCommands = ["login", "logout"]

interface CommandLineEvents {
message: string
Expand Down Expand Up @@ -426,7 +427,14 @@ ${renderDivider({ width, char, color })}
showHelp() {
// TODO: group commands by category?
const renderedCommands = renderCommands(
this.commands.filter((c) => !(c.hidden || c instanceof CommandGroup || hideCommands.includes(c.getFullName())))
this.commands.filter(
(c) =>
!(
(c.hidden && !overrideHiddenCommands.includes(c.getFullName())) ||
c instanceof CommandGroup ||
hideCommands.includes(c.getFullName())
)
)
)

const helpText = `
Expand Down

0 comments on commit e6b3cf7

Please sign in to comment.