cmdpal 0.3.0

Rust SDK for PowerToys Command Palette
Documentation
1
2
3
4
5
6
7
8
9
10
11
The **GetCommand** method is used to retrieve a command by its ID. This method is used to get a command that has been registered with the Command Palette.

## Parameters


*id* **String**

The ID of the command to retrieve. The ID is a unique identifier for the command and is used to identify the command in the Command Palette.

## Returns


An [`ICommand`] that contains the command that was registered with the Command Palette. If the command is not found, this method returns null.