MCPcopy
hub / github.com/zappa/Zappa / _get_init_env

Method _get_init_env

zappa/cli.py:1862–1880  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1860 return True
1861
1862 def _get_init_env(self) -> str:
1863 # Create Env
1864 while True:
1865 click.echo(
1866 "Your Zappa configuration can support multiple production stages, like '"
1867 + click.style("dev", bold=True)
1868 + "', '"
1869 + click.style("staging", bold=True)
1870 + "', and '"
1871 + click.style("production", bold=True)
1872 + "'."
1873 )
1874 env = input("What do you want to call this environment (default 'dev'): ") or "dev"
1875 try:
1876 self.check_stage_name(env)
1877 break
1878 except ValueError:
1879 click.echo(click.style("Stage names must match a-zA-Z0-9_", fg="red"))
1880 return env
1881
1882 def _get_init_profile(self, default_profile: str, profiles: dict, profile_names: list) -> tuple[str, dict]:
1883 while True:

Callers 1

initMethod · 0.95

Calls 1

check_stage_nameMethod · 0.95

Tested by

no test coverage detected