13 lines
372 B
Python
13 lines
372 B
Python
import click
|
|
import subprocess
|
|
import os
|
|
|
|
|
|
@click.command()
|
|
def drive():
|
|
"""View OneDrive files."""
|
|
click.echo("Launching OneDrive viewer...")
|
|
# Get the directory containing this file, then go up to project root
|
|
current_dir = os.path.dirname(os.path.dirname(os.path.dirname(__file__)))
|
|
subprocess.run(["python3", "drive_view_tui.py"], cwd=current_dir)
|