Add initial CLI support
This commit is contained in:
parent
e16d67e2f8
commit
22a9c68611
14 changed files with 168 additions and 26 deletions
13
trovedb/cli/status.py
Normal file
13
trovedb/cli/status.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
"""System Status"""
|
||||
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."""
|
||||
|
||||
if env.local_trove:
|
||||
print("Trove Detected")
|
||||
Loading…
Add table
Add a link
Reference in a new issue