Skip to content

Commit da9065c

Browse files
committed
changelog
1 parent 61c1e65 commit da9065c

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

firebase-vscode/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## NEXT
22

33
- [Added] Refine / Generate Operation Code Lens.
4-
- []
4+
- [Added] Support run "firebase init" without login and project.
55

66
## 1.8.0
77

src/commands/init.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ export const command = new Command("init [feature]")
154154
* @param options Command options
155155
*/
156156
export async function initAction(feature: string, options: Options): Promise<void> {
157+
console.log("options", options.project);
157158
if (feature && !featureNames.includes(feature)) {
158159
return utils.reject(
159160
clc.bold(feature) +

src/init/features/project.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export async function doSetup(setup: any, config: any, options: any): Promise<vo
4444
return;
4545
}
4646
await requireAuth(options);
47-
await usingProject(setup, config, options.project, "--project flag");
47+
await usingProject(setup, config, options.project);
4848
return;
4949
}
5050
const projectFromRcFile = setup.rcfile?.projects?.default;
@@ -103,11 +103,11 @@ async function usingProject(
103103
setup: any,
104104
config: any,
105105
projectId: string,
106-
from: string,
106+
from: string = "",
107107
): Promise<void> {
108108
const pm = await getFirebaseProject(projectId);
109109
const label = `${pm.projectId}` + (pm.displayName ? ` (${pm.displayName})` : "");
110-
utils.logBullet(`Using project ${label} from ${from}.`);
110+
utils.logBullet(`Using project ${label} ${from ? "from ${from}" : ""}.`);
111111
await usingProjectMetadata(setup, config, pm);
112112
}
113113

0 commit comments

Comments
 (0)