Last active
September 18, 2015 10:32
-
-
Save nocd5/2a0ed6c2dabf682e946a to your computer and use it in GitHub Desktop.
nyagosのpanic再現パタン
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
function sleep(n) | |
local t = os.time() | |
while os.time() - t <= n do end | |
end | |
local _prompt = nyagos.prompt | |
nyagos.prompt = function(template) | |
sleep(1) | |
return _prompt('nyagos > ') | |
end | |
nyagos.alias.foo = function() | |
print("alias.foo -->") | |
sleep(1) | |
print("<-- alias.foo") | |
end | |
nyagos.on_command_not_found = function(args) | |
print("on_command_not_found -->") | |
sleep(1) | |
print("<-- on_command_not_found") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment