test
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
mol
2024-07-06 22:23:31 +08:00
parent 08173d8497
commit 263cb5ef03
1663 changed files with 526884 additions and 0 deletions

View File

@ -0,0 +1,23 @@
#!/usr/bin/env node
const { ModelOperations } = require('../dist/lib/index');
const os = require('os');
(function (params) {
console.warn('Note: this CLI is only for diagnosing the model results in @vscode/vscode-languagedetection. It should not be depended on in any production system.');
const args = process.argv.slice(2);
const content = args.join(os.EOL);
if (!content) {
console.error('No content specified. Please pass in the content as the first argument of invocation.');
return;
}
if (content.length <= 20) {
console.error('Not enough content specified. Please include more content in your invocation.');
return;
}
const modelOperations = new ModelOperations();
modelOperations.runModel(content).then((result) => console.log(result));
})();