Pyjoyment.Command.stdio - Standard input and output command¶
Usage: APPLICATION stdio [OPTIONS]
./myapp.py stdio
./myapp.py stdio -m production
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.stdio starts applications with the
Pyjo.Server.Stdio backend, which serves the protocol that the
application or a plugin gives with a subscriber of its event stream on
the standard input and output. It is not detected, as a pipe on the standard
input is too common to mean it.
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.
It has no counterpart in Mojolicious.
Classes¶
- class Pyjoyment.Command.stdio.Pyjoyment_Command_stdio(**kwargs: Any)[source]¶
Pyjoyment.Command.stdioinherits all attributes and methods fromPyjoyment.Commandand implements the following new ones.- description = 'Start application on standard input and output'¶
description = stdio.description stdio.description = 'Foo'
Short description of this command, used for the command list.
- usage = 'Usage: APPLICATION stdio [OPTIONS]\n\n ./myapp.py stdio\n ./myapp.py stdio -m production\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 = stdio.usage stdio.usage = 'Foo'
Usage information for this command, used for the help screen.