Initial commit: mycli toolkit with all commands
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
"""MyCLI main entry point."""
|
||||
|
||||
import click
|
||||
|
||||
from mycli.commands import pdf, image, latex, video, bib, utils, env_cmd, ssh_cmd, git_cmd, self_cmd, config_cmd
|
||||
|
||||
|
||||
@click.group()
|
||||
@click.version_option(version="0.1.0", prog_name="mycli")
|
||||
def cli():
|
||||
"""Personal CLI toolkit."""
|
||||
pass
|
||||
|
||||
|
||||
# Register command groups
|
||||
cli.add_command(pdf.pdf)
|
||||
cli.add_command(image.image)
|
||||
cli.add_command(latex.latex)
|
||||
cli.add_command(video.video)
|
||||
cli.add_command(bib.bib)
|
||||
cli.add_command(utils.utils)
|
||||
cli.add_command(env_cmd)
|
||||
cli.add_command(ssh_cmd)
|
||||
cli.add_command(git_cmd)
|
||||
cli.add_command(self_cmd)
|
||||
cli.add_command(config_cmd)
|
||||
|
||||
|
||||
def main():
|
||||
cli()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user