Skip to content
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
8 changes: 3 additions & 5 deletions packages/rstack/src/cli/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { hasHelpFlag, renderHelp } from './help.ts';

const renderRootHelp = (): string =>
renderHelp({
usage: 'rs [command] [...options]',
usage: 'rs [command] [options]',
sections: [
{
title: 'Commands',
Expand Down Expand Up @@ -48,6 +48,7 @@ const renderCheckHelp = (): string =>
title: 'Options',
items: [
['--type-check', 'Enable TypeScript type checking'],
['-c, --config <path>', 'Specify Rstack config file path'],
['-h, --help', 'Display this help message'],
],
},
Expand Down Expand Up @@ -182,10 +183,7 @@ const renderDocEjectHelp = (): string =>
sections: [
{
title: 'Options',
items: [
['-c, --config <path>', 'Specify Rstack config file path'],
['-h, --help', 'Display this help message'],
],
items: [['-h, --help', 'Display this help message']],
},
],
});
Expand Down
1 change: 1 addition & 0 deletions packages/rstack/src/fmt/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ const renderFmtHelp = (): string =>
['--with-node-modules', 'Process files inside node_modules'],
['--parallel-workers <count>', 'Number of parallel workers'],
['--stdin-filepath <path>', 'Format stdin as if it were saved at <path>'],
['-c, --config <path>', 'Specify Rstack config file path'],
['-h, --help', 'Display this help message'],
],
},
Expand Down
2 changes: 1 addition & 1 deletion packages/rstack/src/setup/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { installHooks } from './install.ts';
const renderSetupHelp = (): string =>
renderHelp({
usage: 'rs setup [options]',
description: 'Install Git hooks in the current repository.',
description: 'Install Git hooks in the current repository',
sections: [
{
title: 'Options',
Expand Down
3 changes: 2 additions & 1 deletion packages/rstack/src/staged.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,14 @@ const renderStagedHelp = (): string =>
],
['--cwd <path>', 'Working directory to run all tasks in'],
['-d, --debug', 'Print additional debug information'],
['--no-stash', 'Disable the backup stash. Implies "--no-revert".'],
['--no-stash', 'Disable backup stash and automatic revert'],
['-q, --quiet', "Disable lint-staged's own console output"],
['-r, --relative', 'Pass relative filepaths to tasks'],
[
'-v, --verbose',
'Show task output even when tasks succeed; by default only failed output is shown',
],
['-c, --config <path>', 'Specify Rstack config file path'],
['-h, --help', 'Display this help message'],
],
},
Expand Down
5 changes: 3 additions & 2 deletions packages/rstack/tests/cli/__snapshots__/check.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ Usage:
Run static checks, including lint and format

Options:
--type-check Enable TypeScript type checking
-h, --help Display this help message
--type-check Enable TypeScript type checking
-c, --config <path> Specify Rstack config file path
-h, --help Display this help message
"
`;
5 changes: 2 additions & 3 deletions packages/rstack/tests/cli/__snapshots__/help.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ Usage:
Eject a theme component

Options:
-c, --config <path> Specify Rstack config file path
-h, --help Display this help message
-h, --help Display this help message
"
`;

Expand Down Expand Up @@ -340,7 +339,7 @@ exports[`displays top-level help 1`] = `
"Rstack v<version>

Usage:
$ rs [command] [...options]
$ rs [command] [options]

Commands:
dev Run the app dev server
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Options:
--with-node-modules Process files inside node_modules
--parallel-workers <count> Number of parallel workers
--stdin-filepath <path> Format stdin as if it were saved at <path>
-c, --config <path> Specify Rstack config file path
-h, --help Display this help message
"
`;
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ exports[`displays setup help 1`] = `
Usage:
$ rs setup [options]

Install Git hooks in the current repository.
Install Git hooks in the current repository

Options:
--hooks-dir <path> Specify hooks directory relative to the Git repository root
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ Options:
-p, --concurrent <number|boolean> The number of tasks to run concurrently, or false for serial
--cwd <path> Working directory to run all tasks in
-d, --debug Print additional debug information
--no-stash Disable the backup stash. Implies "--no-revert".
--no-stash Disable backup stash and automatic revert
-q, --quiet Disable lint-staged's own console output
-r, --relative Pass relative filepaths to tasks
-v, --verbose Show task output even when tasks succeed; by default only failed output is shown
-c, --config <path> Specify Rstack config file path
-h, --help Display this help message
"
`;