feat: publish cli

This commit is contained in:
Jonathan Kelley committed 2022-01-09 00:23:58 -05:00
1 parent 12be67bf4c
commit 44d7b32992
12 files changed
+240 -191

No files matched your search

+2 -2
View File
@@ -13,7 +13,7 @@ export function activate(context: vscode.ExtensionContext) {
const selection = editor.selection;
const word = document.getText(selection);
const child_proc = spawn("dioxus", ["translate", "-t", word]);
const child_proc = spawn("dioxus", ["translate", "--source", word]);
let result = '';
child_proc.stdout?.on('data', data => result += data);
@@ -37,7 +37,7 @@ export function activate(context: vscode.ExtensionContext) {
const selection = editor.selection;
const word = document.getText(selection);
const child_proc = spawn("dioxus", ["translate", "-c", "-t", word]);
const child_proc = spawn("dioxus", ["translate", "--component", "--source", word]);
let result = '';
child_proc.stdout?.on('data', data => result += data);