Extra functionality for Tardis commandline.#1
Open
ShimmerFairy wants to merge 4 commits intomasak:masterfrom
ShimmerFairy:master
Open
Extra functionality for Tardis commandline.#1ShimmerFairy wants to merge 4 commits intomasak:masterfrom ShimmerFairy:master
ShimmerFairy wants to merge 4 commits intomasak:masterfrom
ShimmerFairy:master
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Here I have added some extra commands for the Tardis commandline. Here is a quick overview:
help — this command gives you help on various commands of the program. If you type a command after help, you'll get detailed info on that command.
pets — It does the opposite of step, and jumps one back in the program. (I thought
pets' was much cooler thanunstep')rewrite CODE — This lets you rewrite the current tick to contain CODE, then recompiles and reruns the program.
unwrite — This will unwrite the current tick you're on. In other words, it takes the appropriate tick from the original program and overwrites what that tick currently holds.
It's not perfect (I can imagine things breaking if you use rewrite and turn one tick into two), but in my opinion it's good enough to be put into the main program.