First upload version 0.0.1
This commit is contained in:
26
node_modules/node-llama-cpp/dist/cli/startCreateCli.js
generated
vendored
Normal file
26
node_modules/node-llama-cpp/dist/cli/startCreateCli.js
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
#!/usr/bin/env node
|
||||
import yargs from "yargs";
|
||||
import { hideBin } from "yargs/helpers";
|
||||
import { setIsRunningFromCLI } from "../state.js";
|
||||
import { CreateCliCommand } from "./commands/InitCommand.js";
|
||||
/** @internal */
|
||||
export function _startCreateCli({ cliBinName, packageVersion, _enable }) {
|
||||
if (_enable !== Symbol.for("internal"))
|
||||
return;
|
||||
setIsRunningFromCLI(true);
|
||||
const yarg = yargs(hideBin(process.argv));
|
||||
yarg
|
||||
.scriptName(cliBinName)
|
||||
.usage("Usage: $0 [options]")
|
||||
.command(CreateCliCommand)
|
||||
.demandCommand(1)
|
||||
.strict()
|
||||
.strictCommands()
|
||||
.alias("v", "version")
|
||||
.help("h")
|
||||
.alias("h", "help")
|
||||
.version(packageVersion)
|
||||
.wrap(Math.min(100, yarg.terminalWidth()))
|
||||
.parse();
|
||||
}
|
||||
//# sourceMappingURL=startCreateCli.js.map
|
||||
Reference in New Issue
Block a user