mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2025-05-07 05:02:04 +02:00
Start working on a better shell mechanism for Windows
It uses a Perl script to keep a bash session open, which attaches to a port the game keeps open. This avoids having to start a new Git bash for each command, improving the execution speed by a factor of 3-4.
This commit is contained in:
parent
2a82b617be
commit
53c249d059
8 changed files with 145 additions and 15 deletions
scenes
|
@ -35,6 +35,9 @@ func exec(command, args=[], crash_on_fail=true):
|
|||
|
||||
return {"output": output, "exit_code": exit_code}
|
||||
|
||||
func exec_async(command, args=[]):
|
||||
OS.execute(command, args, false)
|
||||
|
||||
# Return the contents of a file. If no fallback_string is provided, crash when
|
||||
# the file doesn't exist.
|
||||
func read_file(path, fallback_string=null):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue