[kbn/pm] remove extra trailing chars (#136781)

This commit is contained in:
Spencer 2022-07-20 16:19:03 -07:00 committed by GitHub
parent 35f13999f0
commit 0bbded2b5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 18 deletions

View file

@ -25,16 +25,16 @@ export const command = {
changes build artifacts will be downloaded from the remote cache. changes build artifacts will be downloaded from the remote cache.
`, `,
flagsHelp: ` flagsHelp: `
--force-install Use this flag to force bootstrap to install yarn dependencies. By default the', --force-install Use this flag to force bootstrap to install yarn dependencies. By default the
command will attempt to only run yarn installs when necessary, but if you manually', command will attempt to only run yarn installs when necessary, but if you manually
delete the node modules directory or have an issue in your node_modules directory', delete the node modules directory or have an issue in your node_modules directory
you might need to force the install manually.', you might need to force the install manually.
--offline Run the installation process without consulting online resources. This is useful and', --offline Run the installation process without consulting online resources. This is useful and
sometimes necessary for using bootstrap on an airplane for instance. The local caches', sometimes necessary for using bootstrap on an airplane for instance. The local caches
will be used exclusively, including a yarn-registry local mirror which is created and', will be used exclusively, including a yarn-registry local mirror which is created and
maintained by successful online bootstrap executions.', maintained by successful online bootstrap executions.
--no-validate By default bootstrap validates the yarn.lock file to check for a handfull of', --no-validate By default bootstrap validates the yarn.lock file to check for a handfull of
conditions. If you run into issues with this process locally you can disable it by', conditions. If you run into issues with this process locally you can disable it by
passing this flag. passing this flag.
--no-vscode By default bootstrap updates the .vscode directory to include commonly useful vscode --no-vscode By default bootstrap updates the .vscode directory to include commonly useful vscode
settings for local development. Disable this process either pass this flag or set settings for local development. Disable this process either pass this flag or set

View file

@ -13,10 +13,10 @@ export const command = {
name: 'watch', name: 'watch',
description: 'Runs a build in the Bazel built packages and keeps watching them for changes', description: 'Runs a build in the Bazel built packages and keeps watching them for changes',
flagsHelp: ` flagsHelp: `
--offline Run the installation process without consulting online resources. This is useful and', --offline Run the installation process without consulting online resources. This is useful and
sometimes necessary for using bootstrap on an airplane for instance. The local caches', sometimes necessary for using bootstrap on an airplane for instance. The local caches
will be used exclusively, including a yarn-registry local mirror which is created and', will be used exclusively, including a yarn-registry local mirror which is created and
maintained by successful online bootstrap executions.', maintained by successful online bootstrap executions.
`, `,
reportTimings: { reportTimings: {
group: 'scripts/kbn watch', group: 'scripts/kbn watch',

View file

@ -44,13 +44,11 @@ export async function getHelp(cmdName = undefined) {
return ['', ...cmdLines(0, cmd)].join('\n'); return ['', ...cmdLines(0, cmd)].join('\n');
} }
const lines = [ return [
'Usage:', 'Usage:',
' yarn kbn <command> [...flags]', ' yarn kbn <command> [...flags]',
'', '',
'Commands:', 'Commands:',
...COMMANDS.map((cmd) => cmdLines(2, cmd)).flat(), ...COMMANDS.map((cmd) => cmdLines(2, cmd)).flat(),
]; ].join('\n');
return lines.join('\n');
} }