preflight referenced non-existent work-order.md (replaced by agent-tasks.md). utils only contained albany-cleanup (Albany supercomputer no longer used). self was a legacy backward-compat group — update/uninstall are already top-level.
50 lines
1.1 KiB
Python
50 lines
1.1 KiB
Python
"""MyCLI main entry point."""
|
|
|
|
from pathlib import Path
|
|
|
|
import click
|
|
|
|
from bin.commands import pdf, image, latex, video, bib
|
|
from bin.commands.convert import convert_cmd
|
|
from bin.commands.env import env_cmd
|
|
from bin.commands.templates import templates_cmd
|
|
from bin.commands.ssh import ssh_cmd
|
|
from bin.commands.git import git_cmd
|
|
from bin.commands.server import server_cmd
|
|
from bin.commands.webpage import webpage_cmd
|
|
from bin.commands.mail import mail
|
|
from bin.commands.self_mgmt import update_cmd, uninstall_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(convert_cmd)
|
|
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(env_cmd)
|
|
cli.add_command(templates_cmd)
|
|
cli.add_command(ssh_cmd)
|
|
cli.add_command(git_cmd)
|
|
cli.add_command(server_cmd)
|
|
cli.add_command(webpage_cmd)
|
|
cli.add_command(mail)
|
|
cli.add_command(update_cmd)
|
|
cli.add_command(uninstall_cmd)
|
|
|
|
|
|
def main():
|
|
cli()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|