refactor: rename package from mytoolkit to bin
- Move all source files from mytoolkit/ to bin/ - Update entry point and build config in pyproject.toml - Add pillow and pypdf dependencies - Update README and .gitignore paths - Remove unused subprocess import in pdf.py - Clean up duplicate imports in pdf merge command
This commit is contained in:
+36
@@ -0,0 +1,36 @@
|
||||
"""MyCLI main entry point."""
|
||||
|
||||
import click
|
||||
|
||||
from bin.commands import pdf, image, latex, video, bib, utils, env_cmd, ssh_cmd, git_cmd
|
||||
from bin.commands.self_mgmt import update_cmd, uninstall_cmd, self_cmd
|
||||
|
||||
|
||||
@click.group()
|
||||
@click.version_option(version="0.1.0", prog_name="mytoolkit")
|
||||
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(update_cmd)
|
||||
cli.add_command(uninstall_cmd)
|
||||
cli.add_command(self_cmd)
|
||||
|
||||
|
||||
def main():
|
||||
cli()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user