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 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
def signatures [cmd: string] { | |
scope commands | |
| where name == $cmd | |
| get 0.signatures | |
| values | |
| first | |
| where parameter_type not-in [input output] | |
| enumerate | |
| sort-by {$in.item.parameter_type == rest} index | |
| get item |
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
#!/usr/bin/python | |
import sys | |
import json | |
import SocketServer | |
SocketServer.TCPServer.allow_reuse_address = True | |
class MCHandler(SocketServer.BaseRequestHandler): | |
stop_server = False |