Changeset 1014


Ignore:
Timestamp:
07/16/20 15:10:12 (3 months ago)
Author:
Maciej Komosinski
Message:

Added more details to docs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • framspy/FramsticksCLI.py

    r1013 r1014  
    138138                        self.child.expect('\r\n' if os.name == "nt" else '\n')
    139139                        msg = str(self.child.before)
    140                         if self.PRINT_FRAMSTICKS_OUTPUT or msg.startswith("[ERROR]"):
     140                        if self.PRINT_FRAMSTICKS_OUTPUT or msg.startswith("[ERROR]") or msg.startswith("[CRITICAL]"):
    141141                                print(msg)
    142142                        if until_marker in msg:
     
    182182
    183183        def sendDirectCommand(self, command: str) -> str:
    184                 """Sends any command to Framsticks CLI. Use when you know Framsticks and its scripting language, Framscript."""
     184                """Sends any command to Framsticks CLI. Use when you know Framsticks and its scripting language, Framscript.
     185
     186                Returns:
     187                        The output of the command, likely with extra \\n because for each entered command, Framsticks CLI responds with a (muted in Quiet mode) prompt and a \\n.
     188                """
    185189                self.child.sendline(command.strip())
    186190                next(FramsticksCLI.sendDirectCommand_counter)
Note: See TracChangeset for help on using the changeset viewer.