Public
Back
Version 3
4/23/2024
import { Command } from "https://esm.town/v/pomdtr/cmdk";
import { blob } from "https://esm.town/v/std/blob?v=12";
export const listBlobs: Command = async () => {
const blobs = await blob.list();
return {
type: "list",
list: {
items: blobs.map(blob => ({
title: blob.key,
actions: [
{
title: "Edit Blob",
type: "run",
run: {
command: "pomdtr/edit_blob",
params: {
blob: blob.key,
},
},
},
],
})),
},
};
};
Updated: April 24, 2024