PK\QMeeclicker/__init__.py"""clicker""" __version__ = "0.2.5" import click @click.group() @click.option("--debug/--no-debug", default=False) @click.pass_context def cli(ctx, debug): click.echo(debug) ctx.ensure_object(dict) ctx.obj["DEBUG"] = debug # ctx.obj = Repo("fuck") ctx.me = "me" class Repo: def __init__(self, name="none"): self.name = name pass_repo = click.make_pass_decorator(Repo, ensure=True) @cli.command() # @click.pass_obj @pass_repo def status(obj): # click.echo(f"clicker status {ctx.obj['DEBUG']}") click.echo(obj.name) # obj["DEBUG"] = "123" # ctx.me = "123" # click.echo(ctx.parent.me) @cli.group() def sub(): """ sub command """ pass @sub.command() def initdb(): click.echo("Initialized the database") @sub.command() def dropdb(): click.echo("Dropped the database") main = cli PKPM\TE33clicker/cli.pydef main(): print("hello clicker lovely boy") PKPMoclicker/main.pyimport click import sys @click.command() @click.option("-c", "--count", default=1, help="Number of greetings.") @click.option("--name", prompt="Your name", help="The person to greet.") def hello(count, name): """Simple program that greets NAME for a total of COUNT times.""" for x in range(count): click.echo("Hello world %s!" % name) click.echo(sys.argv) if __name__ == "__main__": hello() PK!H6K(clicker-0.2.5.dist-info/entry_points.txtN+I/N.,()JLN-Vy\\%%x( PKtZQM.Y44clicker-0.2.5.dist-info/LICENSEThe MIT License (MIT) Copyright (c) 2018 Ryan Wang Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. PKPM37#clicker-0.2.5.dist-info/LICENSE.txt<<<<<<< HEAD MIT License ======= The MIT License (MIT) >>>>>>> setup Copyright (c) 2018 Ryan Wang Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: <<<<<<< HEAD The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. ======= The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. >>>>>>> setup THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, <<<<<<< HEAD OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ======= OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. >>>>>>> setup PK!Hd BUcclicker-0.2.5.dist-info/WHEEL HM K-*ϳR03rOK-J,/RH,rzd&Y)r$[)T&UD"PK!Hh clicker-0.2.5.dist-info/METADATAE0EIt%q#Q ciE&Y̽-t`!6B&᎔ v 5Uq)g)A$pNEadWy,Zn婬df 8jK xߞ/ƈ@'n1Z9ͦI7v/&PK!Hclicker-0.2.5.dist-info/RECORDҹr@E@@t!,Ƙ}i|L0r)QMS/iŭ%$M3DqDhpFgcI_CgW:HR^}PnHDv#l-yb z= Eȋ UJb p[ &Fp&*- ǯ-& nȇycq،x6SbR'm55*F`zn2;8Z!Ssu?wՂqpG