Beispiel #1
0
from piccolo.conf.apps import AppConfig, Command
from .commands.new import new

APP_CONFIG = AppConfig(
    app_name="project",
    migrations_folder_path="",
    commands=[Command(callable=new, aliases=["create"])],
)
Beispiel #2
0
from piccolo.conf.apps import AppConfig, Command
from .commands.new import new
from .commands.show_all import show_all

APP_CONFIG = AppConfig(
    app_name="app",
    migrations_folder_path="",
    commands=[
        Command(callable=new, aliases=["create"]),
        Command(callable=show_all, aliases=["show", "all", "list"]),
    ],
)
Beispiel #3
0
from piccolo.conf.apps import AppConfig, Command

from .commands.run import run

APP_CONFIG = AppConfig(
    app_name="shell",
    migrations_folder_path="",
    commands=[Command(callable=run, aliases=["start"])],
)
Beispiel #4
0
from piccolo.conf.apps import AppConfig, Command

from .commands.version import version

APP_CONFIG = AppConfig(
    app_name="meta",
    migrations_folder_path="",
    commands=[Command(callable=version, aliases=["v"])],
)