Add initial CLI support

This commit is contained in:
Andrew Mulbrook 2026-03-21 22:25:32 -05:00
parent e16d67e2f8
commit 22a9c68611
14 changed files with 168 additions and 26 deletions

16
trovedb/cli/ls.py Normal file
View file

@ -0,0 +1,16 @@
"""Note List"""
import argparse
from trovedb.cli import CliEnv
def setup(parser: argparse.ArgumentParser) -> None:
"""Configure this subcommand's arguments."""
pass
def run(env: CliEnv, args: argparse.Namespace) -> None:
"""Entry point when this subcommand is invoked."""
trove = env.checked_trove()
for entry in trove.get_root().entries():
print(entry)