Andrew Sheridan
Andrew Sheridan
@jianyuan This branch is an excellent reference!
@EntilZha Not an answer to your request, but a simple workaround If you create an enum that has those keys as values, you can use that in the cli and...
In the subcommand files use `app.callback()` instead `app.command()` and you will see what you expect. `cli.py`: ```python import typer import commands app = typer.Typer(add_completion=False) app.add_typer(typer_instance=commands.make_structure.app, name="create", help="Create the project structure")...
- accept strings with a known pattern eg keyvalue - split the strings on into tuples - do stuff with your list of tuples
@allinhtml One way to accomplish this is to have a module level object, a dataclass instance or a dict etc, to hold the state, and a callback to set it....
May be related to PR #370 where this syntax was proposed ```toml version_files = [ "pyproject.toml:[tool.commitizen]\nversion", "pyproject.toml:[tool.poetry]\nname = \"commitizen\"\nversion", "commitizen/__version__.py" ] ``` However that seems a little inelegant - also...
@teschmitt I'm not sure your answer here address the question raised by @lesourcil If I spin up a stack from this template then during migrations tables get created in the...
In the `alembic.env` file if you update `run_migrations()` to ```python def run_migrations(connection): context.configure(connection=connection, target_metadata=target_metadata, compare_type=True, include_schemas=True, version_table_schema="some_schema_name") connection.execute(text("CREATE SCHEMA IF NOT EXISTS some_schema_name")) with context.begin_transaction(): context.run_migrations() ``` - then the...