INNER CODE UNIT · Python

cmd_update

ghost-in-the-droid/android-agent · gitd/cli.py:397

def cmd_update(args):
    """Re-fetch the latest version of a skill."""
    name = args.name
    dest = SKILLS_DIR / name
    if not dest.exists():
        logger.error("Skill '%s' is not installed.", name)
        return 1

    meta_path = dest / "skill.yaml"
    if not meta_path.exists():
        logger.error("Skill '%s' has no skill.yaml, cannot determine source.", name)
        return 1

    meta = yaml.safe_load(meta_path.read_text()) or {}
    repo_url = meta.get("repo_url", "")

    if repo_url and _is_github_url(repo_url):
        logger.info("Updating '%s' from %s...", name, repo_url)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…