MCPcopy Index your code
hub / github.com/zappa/Zappa / _get_init_app_function

Method _get_init_app_function

zappa/cli.py:1946–1961  ·  view source on GitHub ↗

Get the flask app function from the user.

(self, matches: list[str])

Source from the content-addressed store, hash-verified

1944 return django_settings # type: ignore
1945
1946 def _get_init_app_function(self, matches: list[str]) -> str: # type: ignore
1947 """Get the flask app function from the user."""
1948 app_function = None
1949 while app_function in [None, ""]:
1950 if matches:
1951 click.echo(
1952 "We discovered: "
1953 + click.style(
1954 ", ".join("{}".format(i) for v, i in enumerate(matches)),
1955 bold=True,
1956 )
1957 )
1958 app_function = input("Where is your app's function? (default '%s'): " % matches[0]) or matches[0]
1959 else:
1960 app_function = input("Where is your app's function?: ")
1961 return app_function # type: ignore
1962
1963 def _get_init_global_settings(self) -> tuple[str, bool]:
1964 global_deployment = False

Callers 1

initMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected