Exemple #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"])],
)
Exemple #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"]),
    ],
)
Exemple #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"])],
)
Exemple #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"])],
)