First Commit

This commit is contained in:
2026-05-12 16:02:07 +02:00
commit 0d285559f1
6 changed files with 150 additions and 0 deletions
Executable
+19
View File
@@ -0,0 +1,19 @@
#!/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()