Updates tooling branding and configuration to use the jpm name and related defaults. - Aligns CLI messaging and docs to reference jpm instead of previous name. - Updates registry entry defaults (repository URL, destination path). - Changes temporary working directory prefix used during fetch operations. - Adds project SDK configuration entries for the IDE. - Adjusts README usage instructions to match the renamed commands. These changes keep tooling, docs, and runtime behavior consistent with the jpm namespace.
32 lines
758 B
Python
32 lines
758 B
Python
from typing import TypedDict
|
|
|
|
|
|
class RegistryEntry(TypedDict, total=False):
|
|
repo: str
|
|
path: str
|
|
ref: str
|
|
dest: str
|
|
|
|
|
|
# Manage your repositories, files, and folders here.
|
|
# Key = addon name you pass to `jpm add <name>`.
|
|
REGISTRY: dict[str, RegistryEntry] = {
|
|
"AddOn_CYCLE800_Turning": {
|
|
"repo": "https://dev.azure.com/janus-engineering-customers/AddonPool/_git/addon_B-Axis_Turning_tnc640",
|
|
"path": "AddOn_CYCLE800_Turning/",
|
|
"ref": "main",
|
|
"dest": "AddOn/",
|
|
}
|
|
}
|
|
|
|
|
|
def load_registry() -> dict[str, RegistryEntry]:
|
|
return REGISTRY
|
|
|
|
|
|
def get_registry_entry(name: str) -> RegistryEntry:
|
|
registry = load_registry()
|
|
if name not in registry:
|
|
raise KeyError(name)
|
|
return registry[name]
|