Skip to content

Commit 7d07f6e

Browse files
committed
feat: Added completions for asdf
1 parent 702913e commit 7d07f6e

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export default async function loadAsdfPluginNames(): Promise<string[]> {
2+
const response = await fetch('https://api.github.com/repos/asdf-vm/asdf-plugins/contents/plugins')
3+
const data = await response.json() as Record<string, any>[]
4+
return data.map((d: any) => d.name as string)
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export default async function loadAsdfPlugins(): Promise<string[]> {
2+
const response = await fetch('https://api.github.com/repos/asdf-vm/asdf-plugins/contents/plugins')
3+
const data = await response.json() as Record<string, any>[]
4+
return data.map((d: any) => d.name as string)
5+
}

0 commit comments

Comments
 (0)