Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[INTERNAL] build: Add details to include-dependency options #637

Merged
merged 2 commits into from
Jul 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/cli/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function(cli) {
})
.option("loglevel", {
alias: "log-level",
describe: "Set the logging level (silent|error|warn|info|perf|verbose|silly).",
describe: "Set the logging level",
default: "info",
type: "string",
choices: ["silent", "error", "warn", "info", "perf", "verbose", "silly"]
Expand Down
11 changes: 7 additions & 4 deletions lib/cli/commands/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,17 @@ build.builder = function(cli) {
middlewares: [baseMiddleware]
})
.option("include-all-dependencies", {
describe: "Include all dependencies in the build result",
describe: "Include all dependencies in the build result. " +
"This is equivalent to '--include-dependency \"*\"'",
alias: ["all", "a"],
default: false,
type: "boolean"
})
.option("include-dependency", {
describe: "A list of dependencies to be included in the build result. You can use the asterisk '*' as" +
" an alias for including all dependencies in the build result. The listed dependencies cannot be" +
" overruled by dependencies defined in 'exclude-dependency'.",
" overruled by dependencies defined in 'exclude-dependency'. " +
"The provided name must match with the dependency name shown in 'ui5 ls --flat'",
type: "string",
array: true
})
Expand All @@ -54,7 +56,8 @@ build.builder = function(cli) {
})
.option("exclude-dependency", {
describe: "A list of dependencies to be excluded from the build result. The listed dependencies can" +
" be overruled by dependencies defined in 'include-dependency'.",
" be overruled by dependencies defined in 'include-dependency'. " +
"The provided name must match with the dependency name shown in 'ui5 ls --flat'",
type: "string",
array: true
})
Expand Down Expand Up @@ -103,7 +106,7 @@ build.builder = function(cli) {
})
.option("cache-mode", {
describe:
"Cache mode to use when consuming SNAPSHOT versions of a framework: 'Default', 'Force', or 'Off'. " +
"Cache mode to use when consuming SNAPSHOT versions of framework dependencies. " +
"The 'Default' behavior is to invalidate the cache after 9 hours. 'Force' uses the cache only and " +
"does not create any requests. 'Off' invalidates any existing cache and updates from the repository",
type: "string",
Expand Down
2 changes: 1 addition & 1 deletion lib/cli/commands/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ serve.builder = function(cli) {
})
.option("cache-mode", {
describe:
"Cache mode to use when consuming SNAPSHOT versions of a framework: 'Default', 'Force', or 'Off'. " +
"Cache mode to use when consuming SNAPSHOT versions of framework dependencies. " +
"The 'Default' behavior is to invalidate the cache after 9 hours. 'Force' uses the cache only and " +
"does not create any requests. 'Off' invalidates any existing cache and updates from the repository",
type: "string",
Expand Down
2 changes: 1 addition & 1 deletion lib/cli/commands/tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ tree.builder = function(cli) {
})
.option("cache-mode", {
describe:
"Cache mode to use when consuming SNAPSHOT versions of a framework: 'Default', 'Force', or 'Off'. " +
"Cache mode to use when consuming SNAPSHOT versions of framework dependencies. " +
"The 'Default' behavior is to invalidate the cache after 9 hours. 'Force' uses the cache only and " +
"does not create any requests. 'Off' invalidates any existing cache and updates from the repository",
type: "string",
Expand Down