Adding Categories

This page explain how to add more categories to the command handler

// we have `commands` object that was already initialized

// use the addCategory function

commands.addCategory("some-new-category", "Some new category");

// This function is also stackable
commands
    .addCategory("some-new-category1", "Some new category 1")
    .addCategory("some-new-category1", "Some new category 2");

Last updated