mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-28 18:23:35 +00:00
chore: lint
This commit is contained in:
parent
93aa7278b7
commit
75bf8a1275
14 changed files with 21 additions and 33 deletions
|
|
@ -16,9 +16,8 @@ async function show() {
|
|||
const [, cmd] = await Dialog.prompt('Command Line', '');
|
||||
const TERMINAL = '^(t|terminal)';
|
||||
|
||||
if (RegExp(`${TERMINAL}$`).test(cmd)) {
|
||||
if (RegExp(`${TERMINAL}$`).test(cmd))
|
||||
return await CloudCmd.Terminal.show();
|
||||
}
|
||||
|
||||
if (RegExp(TERMINAL).test(cmd)) {
|
||||
const command = cmd.replace(RegExp(`${TERMINAL} `), '');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue