Files
cli/main.py
T
2026-05-12 16:02:07 +02:00

19 lines
441 B
Python
Executable File

#!/bin/env python
import typer, json, os, sys
from pathlib import Path
VERSION = "1.0"
app = typer.Typer()
@app.command()
def version():
print(f"Version: {VERSION}")
@app.command()
def login():
if not Path(f"/home/{os.getlogin()}/.config"): os.mkdir(f"/home/{os.getlogin()}/.config")
if not Path(f"/home/{os.getlogin()}/.config/redsocial-cli"): os.mkdir(f"/home/{os.getlogin()}/.config")
if __name__ == "__main__":
app()