infra
¶
| FUNCTION | DESCRIPTION |
|---|---|
add_app |
Add infra for APP_NAME. |
info |
Display some information about the state of template-infra in the project. |
install |
Install template-infra in project. |
migrate_from_legacy |
Migrate an older version of the template to platform-cli setup. |
update |
Update base and application infrastructure. |
update_app |
Update application(s) infrastructure. |
update_base |
Update base infrastructure. |
add_app
¶
add_app(
typer_context: Context,
project_dir: str,
app_name: str,
template_uri: str = DEFAULT_TEMPLATE_URI,
data: list[str] | None = None,
commit: bool = True,
) -> None
Add infra for APP_NAME.
Source code in nava/platform/cli/commands/infra/__init__.py
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | |
info
¶
info(
typer_context: Context, project_dir: Path, template_uri: str | None = None
) -> None
Display some information about the state of template-infra in the project.
Source code in nava/platform/cli/commands/infra/__init__.py
207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 | |
install
¶
install(
typer_context: Context,
project_dir: str,
template_uri: str = DEFAULT_TEMPLATE_URI,
version: str | None = DEFAULT_VERSION,
data: list[str] | None = None,
commit: bool = False,
) -> None
Install template-infra in project.
Source code in nava/platform/cli/commands/infra/__init__.py
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | |
migrate_from_legacy
¶
migrate_from_legacy(
typer_context: Context,
project_dir: str,
origin_template_uri: str = "https://github.com/navapbc/template-infra",
commit: bool = False,
) -> None
Migrate an older version of the template to platform-cli setup.
Source code in nava/platform/cli/commands/infra/__init__.py
186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 | |
update
¶
update(
typer_context: Context,
project_dir: str,
template_uri: str | None = None,
version: str | None = DEFAULT_VERSION,
data: list[str] | None = None,
answers_only: bool = False,
force: bool = False,
) -> None
Update base and application infrastructure.
This effectively just runs update-base followed by update-app --all.
This automatically commits each phase of the update that is successful to
save progress. You can merge all these commits together after if you would
like.
Source code in nava/platform/cli/commands/infra/__init__.py
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 | |
update_app
¶
update_app(
typer_context: Context,
project_dir: str,
app_name: list[str] | None = None,
template_uri: str | None = None,
version: str | None = DEFAULT_VERSION,
data: list[str] | None = None,
commit: bool = True,
all: bool = False,
answers_only: bool = False,
force: bool = False,
) -> None
Update application(s) infrastructure.
Source code in nava/platform/cli/commands/infra/__init__.py
155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 | |
update_base
¶
update_base(
typer_context: Context,
project_dir: str,
template_uri: str | None = None,
version: str | None = DEFAULT_VERSION,
data: list[str] | None = None,
commit: bool = True,
answers_only: bool = False,
force: bool = False,
) -> None
Update base infrastructure.
Source code in nava/platform/cli/commands/infra/__init__.py
128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 | |