GCLI should retain a history of commands executed, and the values that they returned, for use in other commands.
7 years ago
Things to consider: Should we handle history on a per command basis? For example, in the following, we cycle backwards through echo's particular history: > echo "hi" > eval 1 + 1 > echo <up> > echo "hi" We could also possibly take advantage of type information. The ast will have the types. This seems like it would be useful if we had specific types (such as git repositories), but problematic with generic types (such as strings).
Basic implementation at https://github.com/fitzgen/gcli/tree/642239-history
Joe, Can we close this issue, now that my implementation has been merged in to master?
Yes - go ahead