refactor: restructure mytoolkit with new subcommands and md-to-pdf improvements

- Add new subcommands: convert, preflight, server, templates, webpage
- Migrate config from bin/config.json to ~/.config/mytoolkit
- Fix expand_bookmarks to modify writer objects instead of reader
- Improve md_to_pdf with CJK bookmark support
- Update README and project metadata
This commit is contained in:
Zhengshou Lai
2026-05-04 17:19:32 +08:00
parent 38328c28d0
commit 3e4cf618a8
20 changed files with 1846 additions and 214 deletions
+3 -1
View File
@@ -2,7 +2,7 @@
import click
from bin.config import config
from bin.config import CONFIG_PATH, config
@click.group(name="env")
@@ -14,10 +14,12 @@ def env_cmd():
@env_cmd.command("list")
def env_list():
"""List all vars."""
click.echo(f"Storage: {CONFIG_PATH}")
vars = config.get_all()
if not vars:
click.echo("No vars configured.")
return
click.echo()
for name, value in sorted(vars.items()):
masked = "***" if any(x in name.lower() for x in ["key", "secret", "token", "pass"]) else value
click.echo(f"{name:20} = {masked}")