Line

You are reading docs for v0.8. See latest (v0.9)

ui/client/features/shell/domain/ShellCommands

Pure (DOMAIN-001): the commands the shell itself puts in the palette, as data.

Cockpit client (features), v0.8. 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?

optional hint?: 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.

Parameters#

primary

PrimaryScreen[]

others

ShellScreen[]

shortcuts

ShortcutInfo[]

Returns#

ShellCommandSpec[]