Pyjoyment.Command.Author.generate - Generator command

Usage: APPLICATION generate GENERATOR [OPTIONS]

  pyjo generate app
  pyjo generate lite-app

Pyjoyment.Command.Author.generate lists available generators.

This is a core command, that means it is always enabled and its code a good example for learning to build new commands, you’re welcome to fork it.

See Pyjoyment.Commands for a list of commands that are available by default.

See also

Pyjoyment, https://mojolicious.org.

Ported from Mojolicious::Command::Author::generate of Mojolicious 9.49.

Classes

class Pyjoyment.Command.Author.generate.Pyjoyment_Command_Author_generate(**kwargs: Any)[source]

Pyjoyment.Command.Author.generate inherits all attributes and methods from Pyjoyment.Commands and implements the following new ones.

description = 'Generate files and directories from templates'
description = generator.description
generator.description = 'Foo'

Short description of this command, used for the command list.

help(*args: str) → Any[source]
generator.help('app')

Print usage information for generator command.

hint = "\nSee 'APPLICATION generate help GENERATOR' for more information on a specific\ngenerator.\n"
hint = generator.hint
generator.hint = 'Foo'

Short hint shown after listing available generator commands.

property message: str[source]
msg = generator.message
generator.message = 'Bar'

Short usage message shown before listing available generator commands.

namespaces
namespaces = generator.namespaces
generator.namespaces = ['MyApp.Command.generate']

Namespaces to search for available generator commands, defaults to Pyjoyment.Command.Author.generate.