Skip to content

Commit

Permalink
chore: code review
Browse files Browse the repository at this point in the history
  • Loading branch information
sinedied committed May 17, 2022
1 parent f5464db commit 7e09e0d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/cli/commands/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ export default function registerCommand(program: Command) {
.option("-a, --app-location <path>", "the folder containing the source code of the front-end application", DEFAULT_CONFIG.appLocation)
.option("-i, --api-location <path>", "the folder containing the source code of the API application", DEFAULT_CONFIG.apiLocation)
.option("-O, --output-location <path>", "the folder containing the built source of the front-end application", DEFAULT_CONFIG.outputLocation)
.option("-D, --dev-server-url <url>", "connect to the dev server at this URL instead of using output location", DEFAULT_CONFIG.appDevserverUrl)
.option("-au, --api-server-url <url>", "connect to the api server at this URL instead of using output location", DEFAULT_CONFIG.apiDevserverUrl)
.option("-D, --app-devserver-url <url>", "connect to the app dev server at this URL instead of using output location", DEFAULT_CONFIG.appDevserverUrl)
.option("-is, --api-devserver-url <url>", "connect to the api server at this URL instead of using output location", DEFAULT_CONFIG.apiDevserverUrl)
.option<number>("-j, --api-port <apiPort>", "the API server port passed to `func start`", parsePort, DEFAULT_CONFIG.apiPort)
.option("-q, --host <host>", "the host address to use for the CLI dev server", DEFAULT_CONFIG.host)
.option<number>("-p, --port <port>", "the port value to use for the CLI dev server", parsePort, DEFAULT_CONFIG.port)
Expand Down
4 changes: 2 additions & 2 deletions src/core/utils/options.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ describe("Testing aliases for each of the commands and their options", () => {
.option("-a, --app-location <appLocation>")
.option("-i, --api-location <apiLocation>")
.option("-O, --output-location <outputLocation>")
.option("-D, --dev-server-url <url>")
.option("-au, --api-server-url <url>")
.option("-D, --app-devserver-url <url>")
.option("-is, --api-devserver-url <url>")
.option<number>("-j, --api-port <apiPort>", "", parsePort, DEFAULT_CONFIG.apiPort)
.option("-q, --host <host>")
.option<number>("-p, --port <port>", "", parsePort, DEFAULT_CONFIG.port)
Expand Down

0 comments on commit 7e09e0d

Please sign in to comment.