Skip to content

Commit

Permalink
[INTERNAL] Apply UA review to CLI texts
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomByte committed Dec 10, 2018
1 parent e295121 commit dcd1d63
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,15 @@ Options:
--verbose Enable verbose logging. [boolean]
--loglevel Set the logging level (error|warn|info|verbose|silly). [string] [default: "info"]
--port, -p Port to bind on (default for HTTP: 8080, HTTP/2: 8443) [number]
--open, -o Open webserver root directory in default browser. Optionally, supplied relative path will be appended to the root URL [string]
--h2 Shortcut for enabling the HTTP/2 protocol for the webserver [boolean] [default: false]
--open, -o Open web server root directory in default browser. Optionally, supplied relative path will be appended to the root URL [string]
--h2 Shortcut for enabling the HTTP/2 protocol for the web server [boolean] [default: false]
--accept-remote-connections Accept remote connections. By default the server only accepts connections from localhost [boolean] [default: false]
--key Path to the private key [string] [default: "$HOME/.ui5/server/server.key"]
--cert Path to the certificate [string] [default: "$HOME/.ui5/server/server.crt"]
Examples:
ui5 serve Start a webserver for the current project
ui5 serve --h2 Enable the HTTP/2 protocol for the webserver (requires SSL certificate)
ui5 serve Start a web server for the current project
ui5 serve --h2 Enable the HTTP/2 protocol for the web server (requires SSL certificate)
ui5 serve --config /path/to/ui5.yaml Use the project configuration from a custom path
ui5 serve --translator static:/path/to/projectDependencies.yaml Use a "static" translator with translator parameters.
ui5 serve --port 1337 --open tests/QUnit.html Listen to port 1337 and launch default browser with http://localhost:1337/test/QUnit.html
Expand Down
10 changes: 5 additions & 5 deletions lib/cli/commands/serve.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Serve
const serve = {
command: "serve",
describe: "Start a webserver for the current project",
describe: "Start a web server for the current project",
middlewares: [require("../middlewares/base.js")]
};

Expand All @@ -13,12 +13,12 @@ serve.builder = function(cli) {
type: "number"
})
.option("open", {
describe: "Open webserver root directory in default browser. Optionally, supplied relative path will be appended to the root URL",
describe: "Open web server root directory in default browser. Optionally, supplied relative path will be appended to the root URL",
alias: "o",
type: "string"
})
.option("h2", {
describe: "Shortcut for enabling the HTTP/2 protocol for the webserver",
describe: "Shortcut for enabling the HTTP/2 protocol for the web server",
default: false,
type: "boolean"
})
Expand All @@ -37,8 +37,8 @@ serve.builder = function(cli) {
default: "$HOME/.ui5/server/server.crt",
type: "string"
})
.example("ui5 serve", "Start a webserver for the current project")
.example("ui5 serve --h2", "Enable the HTTP/2 protocol for the webserver (requires SSL certificate)")
.example("ui5 serve", "Start a web server for the current project")
.example("ui5 serve --h2", "Enable the HTTP/2 protocol for the web server (requires SSL certificate)")
.example("ui5 serve --config /path/to/ui5.yaml", "Use the project configuration from a custom path")
.example("ui5 serve --translator static:/path/to/projectDependencies.yaml",
"Use a \"static\" translator with translator parameters.")
Expand Down
2 changes: 1 addition & 1 deletion lib/cli/commands/versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const baseMiddleware = require("../middlewares/base.js");

const versions = {
command: "versions",
describe: "Show versions of all UI5 Tooling modules",
describe: "Shows the versions of all UI5 Tooling modules",
middlewares: [baseMiddleware]
};

Expand Down

0 comments on commit dcd1d63

Please sign in to comment.