MCPcopy Create free account
hub / github.com/aws/aws-cli / _run_main

Method _run_main

awscli/customizations/agenttoolkit/add_skill.py:53–70  ·  view source on GitHub ↗
(self, parsed_args, parsed_globals)

Source from the content-addressed store, hash-verified

51 self._agent_configs = agent_configs
52
53 def _run_main(self, parsed_args, parsed_globals):
54 skill_name = parsed_args.skill_name
55 version = getattr(parsed_args, 'skill_version', None)
56 agent_filter = getattr(parsed_args, 'agent', None)
57
58 agents = resolve_agents(agent_filter, self._agent_configs)
59 if not agents:
60 raise ParamValidationError('No supported AI coding agents found.')
61
62 client = self._client or create_client(self._session, parsed_globals)
63 zip_bytes, checksum, version = get_skill_download(
64 client, skill_name, version=version
65 )
66
67 install_skill(
68 skill_name, version, zip_bytes, checksum, agents, self._stream
69 )
70 return 0

Callers

nothing calls this directly

Calls 5

resolve_agentsFunction · 0.90
create_clientFunction · 0.90
get_skill_downloadFunction · 0.90
install_skillFunction · 0.90

Tested by

no test coverage detected