mirror of
https://github.com/simonw/dclient.git
synced 2026-08-07 09:54:11 +02:00
Initial library structure
This commit is contained in:
parent
ac7aaab22d
commit
56c4672f37
9 changed files with 311 additions and 85 deletions
0
dclient/__init__.py
Normal file
0
dclient/__init__.py
Normal file
4
dclient/__main__.py
Normal file
4
dclient/__main__.py
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
from .cli import cli
|
||||
|
||||
if __name__ == "__main__":
|
||||
cli()
|
||||
21
dclient/cli.py
Normal file
21
dclient/cli.py
Normal 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")
|
||||
Loading…
Add table
Add a link
Reference in a new issue