Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraleherbau2011-05-11 09:49:52 -0400
committeraleherbau2011-05-11 09:49:52 -0400
commit3c43ed9828902c5bf7d131742f10d507f64293cd (patch)
tree40d590a59a0719241066ac5e51713c798bbc3981 /python/src/tcf/shell.py
parentaf121b71d340484580a2c1e47f70f1005db9cd9f (diff)
downloadorg.eclipse.tcf-3c43ed9828902c5bf7d131742f10d507f64293cd.tar.gz
org.eclipse.tcf-3c43ed9828902c5bf7d131742f10d507f64293cd.tar.xz
org.eclipse.tcf-3c43ed9828902c5bf7d131742f10d507f64293cd.zip
TCF Python: Implemented LocatorService
Diffstat (limited to 'python/src/tcf/shell.py')
-rw-r--r--python/src/tcf/shell.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/python/src/tcf/shell.py b/python/src/tcf/shell.py
index 8d2b5ae28..dacd3d3fe 100644
--- a/python/src/tcf/shell.py
+++ b/python/src/tcf/shell.py
@@ -33,10 +33,16 @@ import tcf
from tcf.util import sync, event
from tcf import protocol, channel
+class print_peers:
+ def __repr__(self):
+ peers = tcf.peers()
+ return '\n'.join(peers.keys())
+
class Shell(code.InteractiveConsole, protocol.ChannelOpenListener, channel.ChannelListener):
def __init__(self):
locals = {
- "connect" : tcf.connect
+ "connect" : tcf.connect,
+ "peers" : print_peers()
}
sys.ps1 = "tcf> "
protocol.startEventQueue()

Back to the top