feat: output avaiable execute functions if known specified
This commit is contained in:
parent
d4cc665df4
commit
f47cefbd36
@ -889,6 +889,14 @@ class Stack(object):
|
|||||||
"""
|
"""
|
||||||
if not function:
|
if not function:
|
||||||
logger.error("No function specified !")
|
logger.error("No function specified !")
|
||||||
|
headerAdded = False
|
||||||
|
for k in vars(self._pulumi_code).keys():
|
||||||
|
if k.startswith("_execute_"):
|
||||||
|
if not headerAdded:
|
||||||
|
logger.info("Available execute functions:")
|
||||||
|
headerAdded = True
|
||||||
|
logger.info("{}".format(k.replace("_execute_", "- ")))
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
exec_function = f"_execute_{function}"
|
exec_function = f"_execute_{function}"
|
||||||
|
Loading…
Reference in New Issue
Block a user