INNER CODE UNIT · Python

AsyncGroup

nirholas/XActions · python/xeepy/cli/main.py:64

class AsyncGroup(click.Group):
    """Click group that supports async commands."""
    
    def invoke(self, ctx: click.Context) -> Any:
        """Invoke the command, running async if needed."""
        return super().invoke(ctx)


@click.group(cls=AsyncGroup)
@click.option(
    "--config", "-c",
    default="config.yaml",
    help="Path to configuration file.",
    type=click.Path(),
)
@click.option(
    "--verbose", "-v",
    is_flag=True,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…