Skip to content

Categorizing Dynamic Commands #835

@KresoDenis

Description

@KresoDenis

How to categorize a dynamic command created via

setattr(CommandsInLoop, 'do_{}'.format(command), functools.partialmethod(CommandsInLoop.send_text, text=command))

in dynamic example

running categorize function from cmd2 dont work since i guess it was not mean to be used this way.

Any other alternative way. There seems to be nothing in documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions