cement.ext.ext_generate

Cement generate extension module.

class cement.ext.ext_generate.Generate(*args: Any, **kw: Any)[source]

Bases: ArgparseController

class Meta[source]

Bases: Meta

config_section: str = 'generate'

A config [section] to merge config_defaults into. Cement will default to controller.<label> if None is set.

label: str = 'generate'

The string identifier for the controller.

stacked_on = 'base'

A label of another controller to ‘stack’ commands/arguments on top of.

stacked_type = 'nested'

Whether to embed commands and arguments within the parent controller’s namespace, or to nest this controller under the parent controller (making it a sub-command). Must be one of ['embedded', 'nested'].

_setup(app: App) None[source]

Called during application initialization and must setup the handler object making it ready for the framework or the application to make further calls to it.

Parameters:

app (instance) – The application object.

class cement.ext.ext_generate.GenerateTemplateAbstractBase(*args: Any, **kw: Any)[source]

Bases: ArgparseController

class Meta[source]

Bases: Meta