MCPcopy Create free account
hub / github.com/arctic-cli/interface / get

Function get

packages/arctic/src/command/index.ts:80–87  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

78 })
79
80 export async function get(name: string) {
81 const commands = await state()
82 if (commands[name]) return commands[name]
83 for (const command of Object.values(commands)) {
84 if (command.aliases?.includes(name)) return command
85 }
86 return undefined
87 }
88
89 export async function list() {
90 return state().then((x) => Object.values(x))

Callers

nothing calls this directly

Calls 1

stateFunction · 0.85

Tested by

no test coverage detected