Skip to content

Commit

Permalink
Added nested JSON example
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBurchLog authored Jan 2, 2024
1 parent 0d87cec commit c319824
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion nested-calls/nested_calls/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def level_1(self):

@command(description="Start Commands at Level Two")
def level_2(self):
"""Starts Commands at Level One"""
"""Starts Commands at Level Two"""

return self.nestedCallsClient.level_3().output

Expand All @@ -39,6 +39,37 @@ def level_5(self):

return "Success"

@command(description="Start JSON Commands at Level One", output_type="JSON")
def level_1_json(self):
"""Starts JSON Commands at Level One"""

return self.nestedCallsClient.level_2_json().output

@command(description="Start JSON Commands at Level Two", output_type="JSON")
def level_2_json(self):
"""Starts JSON Commands at Level Two"""

return self.nestedCallsClient.level_3_json().output

@command(description="Start JSON Commands at Level Three", output_type="JSON")
def level_3_json(self):
"""Starts JSON Commands at Level Three"""

return self.nestedCallsClient.level_4_json().output

@command(description="Start JSON Commands at Level Four", output_type="JSON")
def level_4_json(self):
"""Starts JSON Commands at Level Four"""

return self.nestedCallsClient.level_5_json().output

@command(description="Start JSON Commands at Level Five", output_type="JSON")
def level_5_json(self):
"""Starts JSON Commands at Level Five"""

return [1,2,3,4,5]



def main():
plugin = Plugin(
Expand Down

0 comments on commit c319824

Please sign in to comment.