mirror of
https://github.com/drewcassidy/quicktex.git
synced 2024-09-13 06:37:34 +00:00
move common code to its own module and out of __init__.py, move command to __main__.py
This commit is contained in:
parent
b8aba4d382
commit
4c6b683616
@ -1 +1,6 @@
|
||||
from _quicktex import *
|
||||
|
||||
if __name__ == "__main__":
|
||||
from quicktex.cli.quicktex import cli
|
||||
|
||||
cli()
|
||||
|
@ -5,12 +5,12 @@ from quicktex.cli.decode import decode
|
||||
|
||||
@click.group()
|
||||
@click.version_option()
|
||||
def cli():
|
||||
def main():
|
||||
"""Encode and Decode various image formats"""
|
||||
|
||||
|
||||
cli.add_command(encode)
|
||||
cli.add_command(decode)
|
||||
main.add_command(encode)
|
||||
main.add_command(decode)
|
||||
|
||||
if __name__ == '__main__':
|
||||
cli()
|
||||
main()
|
Loading…
Reference in New Issue
Block a user