include new functionality in CLI
This commit is contained in:
parent
2204f9e575
commit
f9ce754c1b
@ -0,0 +1,20 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import click
|
||||
|
||||
import pycage.files
|
||||
import pycage.get
|
||||
import pycage.venv
|
||||
|
||||
|
||||
@click.group(help="CLI to download and manage Python standalone distributions")
|
||||
def cli():
|
||||
pass
|
||||
|
||||
|
||||
cli.add_command(pycage.get.get)
|
||||
cli.add_command(pycage.venv.venv)
|
||||
cli.add_command(pycage.files.copy)
|
||||
|
||||
if __name__ == "__main__":
|
||||
cli()
|
||||
@ -1,8 +1,18 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from dataclasses import dataclass
|
||||
|
||||
import msgspec
|
||||
|
||||
|
||||
@dataclass(slots=True, kw_only=True)
|
||||
class OsInfo:
|
||||
PLATFORM: str
|
||||
OS: str
|
||||
FILE_EXT: str
|
||||
INTERPRETER: str
|
||||
|
||||
|
||||
class JsonMetadata(msgspec.Struct):
|
||||
version: int
|
||||
tag: str
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user