[core] Simplify access to commands' prefix and suffix

This commit is contained in:
Candice Bentéjac 2025-06-16 18:01:06 +02:00
parent 46936768d1
commit 3d2dfcb91e
2 changed files with 14 additions and 4 deletions

View file

@ -395,6 +395,16 @@ class NodePlugin(BaseObject):
""" Return the environment dictionary for the runtime. """
return self.processEnv.getEnvDict()
@property
def commandPrefix(self) -> str:
""" Return the command prefix for the NodePlugin's execution. """
return self.processEnv.getCommandPrefix()
@property
def commandSuffix(self) -> str:
""" Return the command suffix for the NodePlugin's execution. """
return self.processEnv.getCommandSuffix()
class NodePluginManager(BaseObject):
"""