nat.cli.entrypoint#

Attributes#

Functions#

setup_logging(log_level)

Configure logging with the specified level

get_version()

cli(ctx, log_level)

Main entrypoint for the NAT CLI

_is_invoking_configure_telemetry(→ bool)

True for nat configure telemetry [...] invocations.

after_pipeline(ctx, pipeline_start_time, *_, **__)

Module Contents#

setup_logging(log_level: str)#

Configure logging with the specified level

get_version()#
cli(ctx: click.Context, log_level: str)#

Main entrypoint for the NAT CLI

_is_invoking_configure_telemetry(
invoked_subcommand: str | None,
) bool#

True for nat configure telemetry [...] invocations.

Walks sys.argv past the configure token and checks whether the next non-flag positional is telemetry. Other nat configure <something-else> paths still trigger the prompt as normal.

start_cmd#
after_pipeline(
ctx: click.Context,
pipeline_start_time: float,
*_,
**__,
)#