Commits

Yuriy Netesov committed 092ee25

[tagjumper::main] tagjumper - jumper script

  • Participants
  • Parent commits e38023d

Comments (0)

Files changed (1)

File tagjumper.py

+#
+# main interface for tagjumper
+#
+
+import sys
+sys.path.append('..')
+import string
+from tagsystem import TagSystem
+
+tagSys = TagSystem()
+
+def jump_command(args):
+    print 'jumping over tag'
+
+def tag_command(args):
+    print 'tagging place'
+    pass
+
+def untag_command(args):
+    print 'untagging place'
+    pass
+
+def rename_tag_command(args):
+    print ''
+    pass
+
+def call_command(args):
+    commands = {'jmp' : jump_command,
+                'tag' : tag_command,
+                'untag' : untag_command,
+                'rename_tag' : rename_tag_command}
+    commandName = args[0]
+    return commands[commandName](args[1:])
+    
+def main():
+    return call_command(sys.argv[1:])
+
+if __name__ == '__main__':
+    main()