Pyjoyment.Command.Author.generate.app - App generator command
Usage: APPLICATION generate app [OPTIONS] [NAME]
pyjo generate app
pyjo generate app TestApp
pyjo generate app My.TestApp
Options:
-h, --help Show this summary of available options
Pyjoyment.Command.Author.generate.app generates application directory
structures for fully functional Pyjoyment applications: the package of
the application in the directory of the project, which is its home, with
pyproject.toml for its dependencies, so that
uv run python -m MyApp daemon starts it and
uv run python -m Pyjo.Prove -l -r t tests it, as does uv run pytest,
with pytest of the dependency group dev, and AGENTS.md, which
CLAUDE.md imports, tells a coding agent how the application is made, run
and tested, and where the skills of Pyjoyment are.
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.
-
class Pyjoyment.Command.Author.generate.app.Pyjoyment_Command_Author_generate_app(**kwargs: Any)[source]
Pyjoyment.Command.Author.generate.app inherits all attributes and
methods from Pyjoyment.Command and implements the following new
ones.
-
description = 'Generate Pyjoyment application directory structure'
description = app.description
app.description = 'Foo'
Short description of this command, used for the command list.
-
run(class_: str | None = None, *args: str) → None[source]
-
Run this command.
-
usage = 'Usage: APPLICATION generate app [OPTIONS] [NAME]\n\n pyjo generate app\n pyjo generate app TestApp\n pyjo generate app My.TestApp\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.