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"]), ], )
from piccolo.conf.apps import AppConfig, Command from .commands.new import new APP_CONFIG = AppConfig( app_name="asgi", migrations_folder_path="", commands=[Command(callable=new, aliases=["create"])], )
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"])], )
from piccolo.conf.apps import AppConfig, Command from .commands.backwards import backwards from .commands.check import check from .commands.clean import clean from .commands.forwards import forwards from .commands.new import new APP_CONFIG = AppConfig( app_name="migrations", migrations_folder_path="", commands=[ Command(callable=backwards, aliases=["b", "back", "backward"]), Command(callable=check), Command(callable=clean), Command(callable=forwards, aliases=["f", "forward"]), Command(callable=new, aliases=["n", "create"]), ], )
import os from piccolo.conf.apps import AppConfig, Command from .commands.change_password import change_password from .commands.change_permissions import change_permissions from .commands.create import create from .tables import BaseUser CURRENT_DIRECTORY = os.path.dirname(os.path.abspath(__file__)) APP_CONFIG = AppConfig( app_name="user", migrations_folder_path=os.path.join(CURRENT_DIRECTORY, "piccolo_migrations"), table_classes=[BaseUser], migration_dependencies=[], commands=[ Command(callable=create, aliases=["new"]), Command(callable=change_password, aliases=["password", "pass"]), Command(callable=change_permissions, aliases=["perm", "perms"]), ], )
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"])], )