Skip to content

@pumpkin-plugins/docs API / commands / flattenCommands

Function: flattenCommands() ​

flattenCommands(tree): FlatCommand[]

Defined in: tools/docs/src/commands.ts:183

Lists the runnable commands of a tree, in the order they were declared.

Parameters ​

tree ​

CommandTree

The commands.

Returns ​

FlatCommand[]

Pumpkin Plugins documentation