# cmd_list_single_command

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-list-commands.c#L49
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-cmd-list-commands-c-cmd_list_single_command/

```c
static void cmd_list_single_command(const struct cmd_entry *entry, struct format_tree *ft, const char *template, struct cmdq_item *item)
```

## Parameters

- `entry` (`const struct cmd_entry *`)
- `ft` (`struct format_tree *`)
- `template` (`const char *`)
- `item` (`struct cmdq_item *`)

## Called by

- [`cmd_list_commands`](/en/tmux/3.7c/reference/c-function-cmd-list-commands-c-cmd_list_commands/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-list-commands.c#L92)

## Calls

- [`cmdq_print`](/en/tmux/3.7c/reference/c-function-cmdq_print/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-list-commands.c#L69)
- [`format_add`](/en/tmux/3.7c/reference/c-function-format_add/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-list-commands.c#L55)
- [`format_expand`](/en/tmux/3.7c/reference/c-function-format_expand/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-list-commands.c#L67)

## Referenced declarations

- [`cmd_entry.alias`](/en/tmux/3.7c/reference/c-struct-cmd_entry-alias/) (attribute)
- [`cmd_entry`](/en/tmux/3.7c/reference/c-struct-cmd_entry/) (struct)
- [`cmdq_item`](/en/tmux/3.7c/reference/c-struct-cmdq_item/) (struct)
- [`format_tree`](/en/tmux/3.7c/reference/c-struct-format_tree/) (struct)
- [`cmd_entry.name`](/en/tmux/3.7c/reference/c-struct-cmd_entry-name/) (attribute)
- [`cmd_entry.usage`](/en/tmux/3.7c/reference/c-struct-cmd_entry-usage/) (attribute)
