feat: publish cli
This commit is contained in:
1 parent
12be67bf4c
commit
44d7b32992
12 files changed
+240
-191
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user