ui/client/features/shell/domain/ShellCommands
Pure (DOMAIN-001): the commands the shell itself puts in the palette, as data.
Cockpit client (features), v0.9. Source: ui/client/features/shell/domain/ShellCommands.ts.
Type Aliases#
ShellCommandAction#
ShellCommandAction = {
href:string;type:"navigate"; } | {pane:"left"|"right"|"drawer";type:"toggle-pane"; } | {type:"toggle-theme"; } | {type:"run-validate"; } | {type:"open-project-switcher"; } | {tab:"diagnostics"|"logs"|"processes";type:"show-drawer-tab"; }
Defined in: ui/client/features/shell/domain/ShellCommands.ts:6
ShellCommandSpec#
ShellCommandSpec =
object
Defined in: ui/client/features/shell/domain/ShellCommands.ts:14
Properties#
action
action:
ShellCommandAction
Defined in: ui/client/features/shell/domain/ShellCommands.ts:20
group
group:
string
Defined in: ui/client/features/shell/domain/ShellCommands.ts:18
hint?
optionalhint?:string
Defined in: ui/client/features/shell/domain/ShellCommands.ts:19
id
id:
string
Defined in: ui/client/features/shell/domain/ShellCommands.ts:15
keywords
keywords:
string[]
Defined in: ui/client/features/shell/domain/ShellCommands.ts:17
title
title:
string
Defined in: ui/client/features/shell/domain/ShellCommands.ts:16
Functions#
shellCommandSpecs()#
shellCommandSpecs(
primary,others,shortcuts):ShellCommandSpec[]
Defined in: ui/client/features/shell/domain/ShellCommands.ts:28
primary are the five top-bar screens ("Go to Git"); others are the remaining routes (Settings, Local Model,
Help, the Import Wizard...), so every screen stays reachable from the palette. A route a primary screen already
owns is listed once.