include new functionality in CLI

This commit is contained in:
Florian Förster 2025-03-19 13:01:16 +01:00
parent 2204f9e575
commit f9ce754c1b
2 changed files with 30 additions and 0 deletions

View File

@ -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()

View File

@ -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