mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-21 23:20:23 +00:00
49 lines
No EOL
1 KiB
Python
49 lines
No EOL
1 KiB
Python
#!/usr/bin/env python3
|
|
|
|
import os, io, sys, platform, shutil, urllib3, json, time, subprocess
|
|
|
|
|
|
import typer
|
|
|
|
app = typer.Typer()
|
|
|
|
|
|
@app.command()
|
|
def list(name: str):
|
|
'''print the lists file'''
|
|
typer.echo(f"Hello {name}")
|
|
|
|
|
|
@app.command()
|
|
def update(name: str):
|
|
'''update the local lists cache'''
|
|
typer.echo(f"Hello {name}")
|
|
data
|
|
@app.command()
|
|
def upgrade(name: str):
|
|
'''upgrade one application'''
|
|
typer.echo(f"Hello {name}")
|
|
|
|
@app.command()
|
|
def search(name: str):
|
|
'''Search application you want to install'''
|
|
typer.echo(f"Hello {name}")
|
|
|
|
@app.command()
|
|
def show(name: str):
|
|
'''show the detail of application'''
|
|
typer.echo(f"Hello {name}")
|
|
|
|
@app.command()
|
|
def install(name: str, formal: bool = False, type: str = None):
|
|
'''install one application'''
|
|
if formal:
|
|
typer.echo(f"Goodbye Ms. {name}. Have a good day.")
|
|
else:
|
|
typer.echo(f"Bye {name}!")
|
|
|
|
os.system("gh repo list websoft9 --public --no-archived")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
app() |