-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from Weminal-labs/feature/ui
feat: update UI, MoveCall & add Build, Test, Faucet
- Loading branch information
Showing
31 changed files
with
888 additions
and
664 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import * as vscode from 'vscode'; | ||
|
||
export class SuiSimulatorTerminal { | ||
private terminal: vscode.Terminal; | ||
|
||
constructor() { | ||
this.terminal = vscode.window.createTerminal("Sui Simulator"); | ||
} | ||
|
||
build(packagePath: string | undefined, suiPath: string) { | ||
console.log(this.terminal.exitStatus); | ||
if (this.isCloseTerminal()) { | ||
this.createTerminal(); | ||
} | ||
this.terminal.sendText(`${suiPath} move build -p ${packagePath}`); | ||
this.terminal.show(); | ||
} | ||
|
||
test(packagePath: string | undefined, suiPath: string) { | ||
console.log(this.terminal.exitStatus); | ||
if (this.isCloseTerminal()) { | ||
this.createTerminal(); | ||
} | ||
this.terminal.sendText(`${suiPath} move test -p ${packagePath}`); | ||
this.terminal.show(); | ||
} | ||
|
||
private createTerminal() { | ||
this.terminal = vscode.window.createTerminal("Sui Simulator"); | ||
} | ||
|
||
private isCloseTerminal(): boolean { | ||
return this.terminal.exitStatus instanceof Object; | ||
} | ||
} |
Oops, something went wrong.