mirror of
https://github.com/autistic-symposium/web3-starter-py.git
synced 2025-05-19 07:00:43 -04:00
add a few simple boilerplates
This commit is contained in:
parent
962d1a0778
commit
60f223867a
16 changed files with 80 additions and 0 deletions
32
Click_app/yourapp/yourapp.py
Normal file
32
Click_app/yourapp/yourapp.py
Normal file
|
@ -0,0 +1,32 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import click
|
||||
|
||||
|
||||
@click.command()
|
||||
|
||||
@click.option('-s',
|
||||
'--source',
|
||||
default='dev',
|
||||
nargs=1,
|
||||
show_default=True,
|
||||
help='Some source string.')
|
||||
|
||||
@click.option('-t',
|
||||
'--target',
|
||||
default='staging',
|
||||
nargs=1,
|
||||
show_default=True,
|
||||
help='Some target string.')
|
||||
|
||||
@click.option('-p',
|
||||
'--services',
|
||||
required=True)
|
||||
|
||||
|
||||
def main(source, target, services):
|
||||
print(source, target, services)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main(source, target, services)
|
Loading…
Add table
Add a link
Reference in a new issue