Added check to make sure help list isn't generated multiple times
This commit is contained in:
parent
8d5cd12a45
commit
963d5247f6
2 changed files with 4 additions and 1 deletions
|
@ -8,6 +8,8 @@ export const categoryTemplate = {
|
|||
};
|
||||
export let categories = categoryTemplate;
|
||||
|
||||
export let generated = false;
|
||||
|
||||
export async function generateList() {
|
||||
categories = categoryTemplate;
|
||||
for (const [command] of commands) {
|
||||
|
@ -24,6 +26,7 @@ export async function generateList() {
|
|||
categories[category].push(`**${command}**${params ? ` ${params}` : ""} - ${description}`);
|
||||
}
|
||||
}
|
||||
generated = true;
|
||||
}
|
||||
|
||||
export async function createPage(output) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue