Commands
python craftpython craft help serveCreating Commands
from masonite.commands import Command
class MyCommand(Command):
"""
Description of Command
command:signature
{user : A positional argument for the command}
{--f|flag : An optional argument for the command}
{--o|option=default: An optional argument for the command with default value}
"""
def handle(self):
passName and Description
Positional Arguments
Optional Arguments
Printing Messages
Advanced
Registering Commands
Last updated