Public
Back
Version 6
4/23/2024
import { blobActions } from "https://esm.town/v/pomdtr/blob_actions";
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: [
...blobActions(blob.key),
],
})),
},
};
};
Updated: April 24, 2024