MCPcopy Index your code
hub / github.com/dbcli/mycli / click_entrypoint

Function click_entrypoint

mycli/main.py:417–430  ·  view source on GitHub ↗

A MySQL terminal client with auto-completion and syntax highlighting. \b Examples: - mycli my_database - mycli -u my_user -h my_host.com my_database - mycli mysql://my_user@my_host.com:3306/my_database

(
    cli_args: CliArgs,
)

Source from the content-addressed store, hash-verified

415@clickdc.adddc('cli_args', CliArgs)
416@click.version_option(mycli_package.__version__, '--version', '-V', help="Output mycli's version.")
417def click_entrypoint(
418 cli_args: CliArgs,
419) -> None:
420 """A MySQL terminal client with auto-completion and syntax highlighting.
421
422 \b
423 Examples:
424 - mycli my_database
425 - mycli -u my_user -h my_host.com my_database
426 - mycli mysql://my_user@my_host.com:3306/my_database
427
428 """
429
430 run_from_cli_args(cli_args, client_factory=MyCli)
431
432
433def main() -> int | None:

Callers

nothing calls this directly

Calls 1

run_from_cli_argsFunction · 0.90

Tested by

no test coverage detected