diff --git a/ascenderkit/cli/custom.py b/ascenderkit/cli/custom.py index dfc705d..75c3224 100644 --- a/ascenderkit/cli/custom.py +++ b/ascenderkit/cli/custom.py @@ -317,6 +317,12 @@ class AdhocCommandStdout(HasStdout, CustomAction): class HasCancel: """Stopping a job that is still pending or running.""" + # Supplied by the CustomAction this is mixed into. Annotations rather than + # assignments: they describe the contract without creating class attributes + # that would shadow the real ones. + page: 'api.pages.Page' + resource: str + action = 'cancel' def add_arguments(self, parser, resource_options_parser): @@ -410,6 +416,12 @@ def perform(self): class HasTest: """Asking the platform to exercise a thing rather than describe it.""" + # Supplied by the CustomAction this is mixed into. Annotations rather than + # assignments: they describe the contract without creating class attributes + # that would shadow the real ones. + page: 'api.pages.Page' + resource: str + action = 'test' def add_arguments(self, parser, resource_options_parser):