We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 411a103 commit 521904dCopy full SHA for 521904d
1 file changed
main.ts
@@ -61,14 +61,18 @@ if (!collection.includes(":")) {
61
}
62
console.log("resolved collection", collection);
63
64
+if (!/^ghcr\.io\/.*?\/.*?$/.test(collection)) {
65
+ throw new DOMException("Only ghcr.io things are supported right now")
66
+}
67
+
68
const devcontainerCollection = {
69
sourceInformation: {
70
source: "devcontainer-cli",
71
},
72
features: [] as any[],
73
templates: [] as any[],
74
};
-const ids = await getAllThings(collection);
75
+const ids = await getAllThings(collection.match(/^ghcr\.io\/(.*?\/.*?)$/)[1]);
76
console.log(ids)
77
78
for (const id of ids) {
0 commit comments