Initial upload: DevDash CLI with TUI dashboard
Some checks failed
CI / test (push) Has been cancelled
Some checks failed
CI / test (push) Has been cancelled
This commit is contained in:
38
src/cli.py
Normal file
38
src/cli.py
Normal file
@@ -0,0 +1,38 @@
|
||||
import click
|
||||
from src.main import main as launch_dashboard
|
||||
|
||||
|
||||
@click.group()
|
||||
def cli():
|
||||
"""DevDash CLI - Terminal-based developer dashboard."""
|
||||
pass
|
||||
|
||||
|
||||
@cli.command()
|
||||
def launch():
|
||||
"""Launch the DevDash dashboard."""
|
||||
launch_dashboard()
|
||||
|
||||
|
||||
@cli.command()
|
||||
def config():
|
||||
"""View or edit configuration."""
|
||||
click.echo("Configuration management not yet implemented")
|
||||
|
||||
|
||||
@cli.command()
|
||||
@click.argument("repo")
|
||||
@click.option("--provider", default="github", help="Repository provider (github, gitlab)")
|
||||
def add_repo(repo, provider):
|
||||
"""Add a repository to the dashboard."""
|
||||
click.echo(f"Adding repository {repo} with provider {provider}")
|
||||
|
||||
|
||||
@cli.command()
|
||||
def doctor():
|
||||
"""Diagnose configuration issues."""
|
||||
click.echo("Configuration diagnosis not yet implemented")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
cli()
|
||||
Reference in New Issue
Block a user