UNPKG

@sap/cli-core

Version:

Command-Line Interface (CLI) Core Module

13 lines (12 loc) 465 B
import path from "path"; import * as commands from "../../utils/commands.js"; import { addCommandsFromFolder } from "../../dwc/utils.js"; export const addCommands = async (program) => { const configCommand = await commands.buildCommand(program, { type: "topCommand", command: "config", description: "configure your CLI", subCommands: [], }); await addCommandsFromFolder(path.join(import.meta.dirname), configCommand); };