Skip to content

Commit

Permalink
add dedicate data base flag for create project (#1355)
Browse files Browse the repository at this point in the history
* add dedicate data base flag for create project

* test with latest createproject api host service and update wording

Co-authored-by: Louise wang <[email protected]>
  • Loading branch information
bighammerw and Louise wang authored Oct 20, 2022
1 parent cbe2187 commit 458f7ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/cli/src/commands/project/create-project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export default class Create_project extends Command {
subtitle: Flags.string({description: 'Enter subtitle', default: '', required: false}),
description: Flags.string({description: 'Enter description', default: '', required: false}),
apiVersion: Flags.string({description: 'Enter api version', default: '2', required: false}),
dedicatedDB: Flags.string({description: 'Enter dedicated DataBase', required: false}),
};

async run(): Promise<void> {
Expand All @@ -42,6 +43,7 @@ export default class Create_project extends Command {
gitRepo,
flags.description,
flags.apiVersion,
flags.dedicatedDB,
ROOT_API_URL_PROD
).catch((e) => this.error(e));

Expand Down
2 changes: 2 additions & 0 deletions packages/cli/src/controller/project-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export async function createProject(
gitRepository: string,
description: string,
apiVersion: string,
dedicateDB: string | undefined,
url: string
): Promise<createProjectType> {
try {
Expand All @@ -41,6 +42,7 @@ export async function createProject(
logoUrl: logoUrl,
name: project_name,
subtitle: subtitle,
dedicateDBKey: dedicateDB,
},
})
).data;
Expand Down

0 comments on commit 458f7ad

Please sign in to comment.