Pyjoyment.Command.version - Version command

Usage: APPLICATION version [OPTIONS]

  pyjo version

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

Pyjoyment.Command.version shows version information for available core and optional modules.

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

Classes

class Pyjoyment.Command.version.Pyjoyment_Command_version(**kwargs: Any)[source]

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

description = 'Show versions of available modules'
description = version.description
version.description = 'Foo'

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

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

Run this command.

usage = 'Usage: APPLICATION version [OPTIONS]\n\n  pyjo version\n\nOptions:\n  -h, --help   Show this summary of available options\n'
usage = version.usage
version.usage = 'Foo'

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