INNER CODE UNIT · Python
cmd_install
ghost-in-the-droid/android-agent · gitd/cli.py:294
def cmd_install(args):
"""Install a skill from registry, GitHub URL, or local path."""
target = args.target
if _is_local_path(target):
# Local path install
source = Path(target).resolve()
if not source.is_dir():
logger.error("'%s' is not a directory.", target)
return 1
if not _validate_skill_dir(source, verbose=True):
if not args.force:
logger.error("Validation failed. Use --force to install anyway.")
return 1
logger.warning("Forcing install despite validation warnings...")
return 0 if _install_to_skills_dir(source) else 1
elif _is_github_url(target):