UNPKG

@nestbox-ai/cli

Version:

The cli tools that helps developers to build agents

34 lines 1.52 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.registerDocumentCommands = registerDocumentCommands; const index_1 = require("./document/index"); /** * Register all document-related commands */ function registerDocumentCommands(program) { // Create the main document command const documentCommand = program .command("document") .description("Manage Nestbox documents"); // Create subcommands for collections and docs const collectionCommand = documentCommand .command("collection") .description("Manage document collections"); const docCommand = documentCommand .command("doc") .description("Manage individual documents"); // Register all collection subcommands (0, index_1.registerCollectionListCommand)(collectionCommand); (0, index_1.registerCollectionCreateCommand)(collectionCommand); (0, index_1.registerCollectionGetCommand)(collectionCommand); (0, index_1.registerCollectionDeleteCommand)(collectionCommand); (0, index_1.registerCollectionUpdateCommand)(collectionCommand); // Register all document subcommands (0, index_1.registerDocAddCommand)(docCommand); (0, index_1.registerDocGetCommand)(docCommand); (0, index_1.registerDocDeleteCommand)(docCommand); (0, index_1.registerDocUpdateCommand)(docCommand); (0, index_1.registerDocUploadFileCommand)(docCommand); (0, index_1.registerDocSearchCommand)(docCommand); } //# sourceMappingURL=document.js.map