in src/rpdk/core/invoke.py [0:0]
def setup_subparser(subparsers, parents):
# see docstring of this file
parser = subparsers.add_parser("invoke", description=__doc__, parents=parents)
parser.set_defaults(command=invoke)
parser.add_argument(
"action",
choices=list(Action.__members__),
help="The provisioning action, i.e. which handler to invoke.",
)
parser.add_argument(
"request",
type=FileType("r", encoding="utf-8"),
help="A JSON file that contains the request to invoke the function with.",
)
parser.add_argument(
"--max-reinvoke",
type=int,
default=None,
help="Maximum number of IN_PROGRESS re-invocations allowed before "
"exiting. If not specified, will continue to "
"re-invoke until terminal status is reached.",
)
parser.add_argument(
"--docker-image",
help="Docker image name to run. If specified, invoke will use docker instead "
"of SAM",
)
_sam_arguments(parser)