MCPcopy Create free account
hub / github.com/bajrangCoder/setu / new

Method new

src/views/command_palette.rs:62–69  ·  view source on GitHub ↗
(id: CommandId, label: &'static str, icon: IconName)

Source from the content-addressed store, hash-verified

60}
61
62impl Command {
63 pub const fn new(id: CommandId, label: &'static str, _icon: IconName) -> Self {
64 Self {
65 id,
66 label,
67 shortcut: None,
68 }
69 }
70
71 pub const fn with_shortcut(mut self, shortcut: &'static str) -> Self {
72 self.shortcut = Some(shortcut);

Callers 1

ensure_input_stateMethod · 0.45

Calls 3

default_commandsFunction · 0.85
lenMethod · 0.45
focus_handleMethod · 0.45

Tested by

no test coverage detected