#!/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()