Page MenuHomeSealhub

list.ts
No OneTemporary

import _locreq from "locreq";
import prompts from "prompts";
import { listCollections } from "../utils/list-collections.js";
import { formatWithPrettier } from "../utils/prettier.js";
import { collectionListTemplate } from "./shared/collection-list.js";
export const listTemplate = async (
action_name: string,
newfilefullpath: string
): Promise<string> => {
const response = await prompts({
type: "autocomplete",
name: "collection",
message: "Which sealious collection do you want to list?",
choices: (
await listCollections()
).map((collection) => ({
title: collection,
value: collection,
})),
});
const collection_name = response.collection as string;
const result = await collectionListTemplate(
collection_name,
action_name,
newfilefullpath
);
return formatWithPrettier(result);
};

File Metadata

Mime Type
text/x-java
Expires
Sat, Jun 7, 23:21 (5 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
625061
Default Alt Text
list.ts (824 B)

Event Timeline