Skip to content

Commit 2ef6af8

Browse files
authored
format apphosting command descriptions according to guidelines (#6802)
Co-authored-by: Mathusan Selvarajah <[email protected]>
1 parent 5248036 commit 2ef6af8

File tree

7 files changed

+18
-18
lines changed

7 files changed

+18
-18
lines changed

src/commands/apphosting-backends-create.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ import { doSetup } from "../init/features/apphosting";
66
import { ensureApiEnabled } from "../gcp/apphosting";
77

88
export const command = new Command("apphosting:backends:create")
9-
.description("Create a backend in a Firebase project")
10-
.option("-l, --location <location>", "Specify the region of the backend", "")
9+
.description("create a backend in a Firebase project")
10+
.option("-l, --location <location>", "specify the region of the backend", "")
1111
.option(
1212
"-s, --service-account <serviceAccount>",
13-
"Specify the service account used to run the server",
13+
"specify the service account used to run the server",
1414
"",
1515
)
1616
.before(ensureApiEnabled)

src/commands/apphosting-backends-get.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ const Table = require("cli-table");
1010
const COLUMN_LENGTH = 20;
1111
const TABLE_HEAD = ["Backend Id", "Repository", "Location", "URL", "Created Date", "Updated Date"];
1212
export const command = new Command("apphosting:backends:get <backendId>")
13-
.description("Get backend details of a Firebase project")
14-
.option("-l, --location <location>", "App Backend location", "-")
13+
.description("get backend details of a Firebase project")
14+
.option("-l, --location <location>", "app backend location", "-")
1515
.before(apphosting.ensureApiEnabled)
1616
.action(async (backendId: string, options: Options) => {
1717
const projectId = needProjectId(options);

src/commands/apphosting-backends-list.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import * as apphosting from "../gcp/apphosting";
1111
const TABLE_HEAD = ["Backend ID", "Repository", "Location", "URL", "Created Date", "Updated Date"];
1212

1313
export const command = new Command("apphosting:backends:list")
14-
.description("List backends of a Firebase project.")
15-
.option("-l, --location <location>", "App Backend location", "-")
14+
.description("list backends of a Firebase project")
15+
.option("-l, --location <location>", "app Backend location", "-")
1616
.before(apphosting.ensureApiEnabled)
1717
.action(async (options: Options) => {
1818
const projectId = needProjectId(options);

src/commands/apphosting-builds-create.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import { Options } from "../options";
55
import { needProjectId } from "../projectUtils";
66

77
export const command = new Command("apphosting:builds:create <backendId>")
8-
.description("Create a build for an App Hosting backend")
9-
.option("-l, --location <location>", "Specify the region of the backend", "us-central1")
10-
.option("-i, --id <buildId>", "Id of the build. If not present, autogenerate a random id", "")
11-
.option("-b, --branch <branch>", "Repository branch to deploy. Defaults to 'main'", "main")
8+
.description("create a build for an App Hosting backend")
9+
.option("-l, --location <location>", "specify the region of the backend", "us-central1")
10+
.option("-i, --id <buildId>", "id of the build (defaults to autogenerating a random id)", "")
11+
.option("-b, --branch <branch>", "repository branch to deploy (defaults to 'main')", "main")
1212
.before(apphosting.ensureApiEnabled)
1313
.action(async (backendId: string, options: Options) => {
1414
const projectId = needProjectId(options);

src/commands/apphosting-builds-get.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import { Options } from "../options";
55
import { needProjectId } from "../projectUtils";
66

77
export const command = new Command("apphosting:builds:get <backendId> <buildId>")
8-
.description("Create a build for an App Hosting backend")
9-
.option("-l, --location <location>", "Specify the region of the backend", "us-central1")
8+
.description("get a build for an App Hosting backend")
9+
.option("-l, --location <location>", "specify the region of the backend", "us-central1")
1010
.before(apphosting.ensureApiEnabled)
1111
.action(async (backendId: string, buildId: string, options: Options) => {
1212
const projectId = needProjectId(options);

src/commands/apphosting-rollouts-create.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import { Options } from "../options";
55
import { needProjectId } from "../projectUtils";
66

77
export const command = new Command("apphosting:rollouts:create <backendId> <buildId>")
8-
.description("Create a build for an App Hosting backend")
9-
.option("-l, --location <location>", "Specify the region of the backend", "us-central1")
10-
.option("-i, --id <rolloutId>", "Id of the rollout. If not present, autogenerate a random id", "")
8+
.description("create a rollout using a build for an App Hosting backend")
9+
.option("-l, --location <location>", "specify the region of the backend", "us-central1")
10+
.option("-i, --id <rolloutId>", "id of the rollout (defaults to autogenerating a random id)", "")
1111
.before(apphosting.ensureApiEnabled)
1212
.action(async (backendId: string, buildId: string, options: Options) => {
1313
const projectId = needProjectId(options);

src/commands/apphosting-rollouts-list.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import { Options } from "../options";
55
import { needProjectId } from "../projectUtils";
66

77
export const command = new Command("apphosting:rollouts:list <backendId>")
8-
.description("List rollouts of an App Hosting backend")
8+
.description("list rollouts of an App Hosting backend")
99
.option(
1010
"-l, --location <location>",
11-
"Rgion of the rollouts. Defaults to listing rollouts from all regions",
11+
"region of the rollouts (defaults to listing rollouts from all regions)",
1212
"-",
1313
)
1414
.before(apphosting.ensureApiEnabled)

0 commit comments

Comments
 (0)