Pyjoyment.Command.Author.inflate - Inflate command

Usage: APPLICATION inflate [OPTIONS]

  ./myapp.py inflate

Options:
  -h, --help                Show this summary of available options
      --home <path>         Path to home directory of your application,
                            defaults to the value of PYJO_HOME or
                            auto-detection
      --log-format <name>   Format of log messages, "text", "plain" without
                            time and process, or "json", defaults to the
                            value of PYJO_LOG_FORMAT or "text"
  -m, --mode <name>         Operating mode for your application, defaults to
                            the value of PYJO_MODE or "development"

Pyjoyment.Command.Author.inflate turns templates and static files embedded in the DATA sections of your application into real files.

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

Classes

class Pyjoyment.Command.Author.inflate.Pyjoyment_Command_Author_inflate(**kwargs: Any)[source]

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

description = 'Inflate embedded files to real files'
description = inflate.description
inflate.description = 'Foo'

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

run(*args: str) → None[source]
inflate.run(*sys.argv[1:])

Run this command.

usage = 'Usage: APPLICATION inflate [OPTIONS]\n\n  ./myapp.py inflate\n\nOptions:\n  -h, --help                Show this summary of available options\n      --home <path>         Path to home directory of your application,\n                            defaults to the value of PYJO_HOME or\n                            auto-detection\n      --log-format <name>   Format of log messages, "text", "plain" without\n                            time and process, or "json", defaults to the\n                            value of PYJO_LOG_FORMAT or "text"\n  -m, --mode <name>         Operating mode for your application, defaults to\n                            the value of PYJO_MODE or "development"\n'
usage = inflate.usage
inflate.usage = 'Foo'

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