TclCommandListSys.py 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. from tclCommands.TclCommand import *
  2. class TclCommandListSys(TclCommand):
  3. """
  4. Tcl shell command to get the list of system variables
  5. example:
  6. list_sys
  7. """
  8. # List of all command aliases, to be able use old names for backward compatibility (add_poly, add_polygon)
  9. aliases = ['list_sys', 'listsys']
  10. # Dictionary of types from Tcl command, needs to be ordered
  11. arg_names = collections.OrderedDict([
  12. ])
  13. # Dictionary of types from Tcl command, needs to be ordered , this is for options like -optionname value
  14. option_types = collections.OrderedDict([
  15. ])
  16. # array of mandatory options for current Tcl command: required = {'name','outname'}
  17. required = []
  18. # structured help for current command, args needs to be ordered
  19. help = {
  20. 'main': "Returns the list of the names of system variables.\n"
  21. "Note: Use get_sys command to get the value and set_sys command to set it.",
  22. 'args': collections.OrderedDict([
  23. ]),
  24. 'examples': []
  25. }
  26. def execute(self, args, unnamed_args):
  27. """
  28. :param args:
  29. :param unnamed_args:
  30. :return:
  31. """
  32. return str([*self.app.defaults])