Skip to content

Commit 7243acd

Browse files
authored
Remove --location from apphosting:backend:list. (#8272)
1 parent 618cfb4 commit 7243acd

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/commands/apphosting-backends-list.ts

+1-7
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,17 @@ import { needProjectId } from "../projectUtils";
66
import { Options } from "../options";
77
import * as apphosting from "../gcp/apphosting";
88
import * as Table from "cli-table3";
9-
import { logWarning } from "../utils";
109

1110
const TABLE_HEAD = ["Backend", "Repository", "URL", "Primary Region", "Updated Date"];
1211

1312
export const command = new Command("apphosting:backends:list")
1413
.description("list Firebase App Hosting backends")
15-
.option("-l, --location <location>", "list backends in the specified location")
1614
.before(apphosting.ensureApiEnabled)
1715
.action(async (options: Options) => {
18-
if (options.location !== undefined) {
19-
logWarning("--location is being removed in the next major release.");
20-
}
2116
const projectId = needProjectId(options);
22-
const location = (options.location as string) ?? "-";
2317
let backendRes: apphosting.ListBackendsResponse;
2418
try {
25-
backendRes = await apphosting.listBackends(projectId, location);
19+
backendRes = await apphosting.listBackends(projectId, /* location= */ "-");
2620
} catch (err: unknown) {
2721
throw new FirebaseError(
2822
`Unable to list backends present for project: ${projectId}. Please check the parameters you have provided.`,

0 commit comments

Comments
 (0)