Ide.CommandManager.get_command_by_id

### Method

# Ide CommandManagerget_command_by_id

#### Declaration

    IdeCommand*
    ide_command_manager_get_command_by_id (
      IdeCommandManager* self,
      IdeWorkspace* workspace,
      const gchar* command_id
    )

#### Description

Gets a command from one of the loaded command providers if any.

Available since: | 3.34

#### Parameters

`workspace` | `IdeWorkspace`
| An `IdeWorkspace`.
| The data is owned by the caller of the function.
`command_id` | `const gchar*`
| The identifier of the command.
| The data is owned by the caller of the function.
| The value is a NUL terminated UTF-8 string.

#### Return value

Returns: | `IdeCommand`
| An `IdeCommand` or `NULL`.
| The caller of the method takes ownership of the data, and is responsible for freeing it.
| The return value can be `NULL`.