From cbfa7139e4b2006575e2af289cf18d84a46fb0f8 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 29 Dec 2025 09:56:54 -0600 Subject: [PATCH 1/2] fix: add `--runas` param for wutta typer commands subcommand logic is responsible for doing something with it, if needed --- src/wuttjamaican/cli/base.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/wuttjamaican/cli/base.py b/src/wuttjamaican/cli/base.py index 9a67768..e91c485 100644 --- a/src/wuttjamaican/cli/base.py +++ b/src/wuttjamaican/cli/base.py @@ -62,7 +62,7 @@ def make_cli_config(ctx: typer.Context): return make_config(files=ctx.params.get("config_paths") or None) -def typer_callback( +def typer_callback( # pylint: disable=unused-argument ctx: typer.Context, config_paths: Annotated[ Optional[List[Path]], @@ -73,7 +73,14 @@ def typer_callback( help="Config path (may be specified more than once)", ), ] = None, -): # pylint: disable=unused-argument + runas_username: Annotated[ + str, + typer.Option( + "--runas", + help="Username responsible for running the command (where applicable).", + ), + ] = None, +): """ Generic callback for use with top-level commands. This adds some top-level args: From 4382601fe0c43428ec884e88179a69495e2eddbd Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 29 Dec 2025 10:34:35 -0600 Subject: [PATCH 2/2] fix: auto-add doc string for uuid primary key columns otherwise these columns were not shown in docs --- src/wuttjamaican/db/util.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wuttjamaican/db/util.py b/src/wuttjamaican/db/util.py index 2d72569..48703ab 100644 --- a/src/wuttjamaican/db/util.py +++ b/src/wuttjamaican/db/util.py @@ -126,6 +126,8 @@ def uuid_column(*args, **kwargs): kwargs.setdefault("primary_key", True) kwargs.setdefault("nullable", False) kwargs.setdefault("default", make_true_uuid) + if kwargs["primary_key"]: + kwargs.setdefault("doc", "UUID primary key for the table.") return sa.Column(*args, **kwargs)