Initial library structure

This commit is contained in:
simonw 2022-11-22 01:57:06 +00:00 committed by github-actions[bot]
commit 56c4672f37
9 changed files with 311 additions and 85 deletions

0
dclient/__init__.py Normal file
View file

4
dclient/__main__.py Normal file
View file

@ -0,0 +1,4 @@
from .cli import cli
if __name__ == "__main__":
cli()

21
dclient/cli.py Normal file
View file

@ -0,0 +1,21 @@
import click
@click.group()
@click.version_option()
def cli():
"A client CLI utility for Datasette instances"
@cli.command(name="command")
@click.argument(
"example"
)
@click.option(
"-o",
"--option",
help="An example option",
)
def first_command(example, option):
"Command description goes here"
click.echo("Here is some output")