Pyjoyment.Command.Author.generate.lite_app - Lite app generator command

Usage: APPLICATION generate lite-app [OPTIONS] [NAME]

  pyjo generate lite-app
  pyjo generate lite-app foo.py

Options:
  -h, --help   Show this summary of available options

Pyjoyment.Command.Author.generate.lite_app generate fully functional Pyjoyment.Lite applications.

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::lite_app of Mojolicious 9.49.

Classes

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

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

description = 'Generate Pyjoyment.Lite application'
description = app.description
app.description = 'Foo'

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

run(name: str | None = None, *args: str) → None[source]
app.run(*sys.argv[1:])

Run this command.

usage = 'Usage: APPLICATION generate lite-app [OPTIONS] [NAME]\n\n  pyjo generate lite-app\n  pyjo generate lite-app foo.py\n\nOptions:\n  -h, --help   Show this summary of available options\n'
usage = app.usage
app.usage = 'Foo'

Usage information for this command, used for the help screen.