Skip to content

Commit 70b7f4d

Browse files
committed
chore: prompt copy, openapi opts cleanup
1 parent 7175537 commit 70b7f4d

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

__tests__/__snapshots__/index.test.ts.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ Options
1515
uploading an existing API definition.
1616
--version string Project version. If running command in a CI environment and this
1717
option is not passed, the main project version will be used.
18+
--workingDirectory string Working directory (for usage with relative external references)
1819
--useSpecVersion Uses the version listed in the \`info.version\` field in the API
1920
definition for the project version parameter.
2021
--raw Return the command results as a JSON object instead of a pretty
2122
output.
2223
--github Create a new GitHub Actions workflow for this command.
23-
--workingDirectory string Working directory (for usage with relative external references)
2424
--create Bypasses the create/update prompt and creates a new API definition.
2525
--update Automatically update an existing API definition in ReadMe if it's the
2626
only one associated with the current version.
@@ -48,12 +48,12 @@ Options
4848
uploading an existing API definition.
4949
--version string Project version. If running command in a CI environment and this
5050
option is not passed, the main project version will be used.
51+
--workingDirectory string Working directory (for usage with relative external references)
5152
--useSpecVersion Uses the version listed in the \`info.version\` field in the API
5253
definition for the project version parameter.
5354
--raw Return the command results as a JSON object instead of a pretty
5455
output.
5556
--github Create a new GitHub Actions workflow for this command.
56-
--workingDirectory string Working directory (for usage with relative external references)
5757
--create Bypasses the create/update prompt and creates a new API definition.
5858
--update Automatically update an existing API definition in ReadMe if it's the
5959
only one associated with the current version.
@@ -81,12 +81,12 @@ Options
8181
uploading an existing API definition.
8282
--version string Project version. If running command in a CI environment and this
8383
option is not passed, the main project version will be used.
84+
--workingDirectory string Working directory (for usage with relative external references)
8485
--useSpecVersion Uses the version listed in the \`info.version\` field in the API
8586
definition for the project version parameter.
8687
--raw Return the command results as a JSON object instead of a pretty
8788
output.
8889
--github Create a new GitHub Actions workflow for this command.
89-
--workingDirectory string Working directory (for usage with relative external references)
9090
--create Bypasses the create/update prompt and creates a new API definition.
9191
--update Automatically update an existing API definition in ReadMe if it's the
9292
only one associated with the current version.

src/cmds/openapi/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ export default class OpenAPICommand extends Command {
5353
type: String,
5454
defaultOption: true,
5555
},
56+
{
57+
name: 'workingDirectory',
58+
type: String,
59+
description: 'Working directory (for usage with relative external references)',
60+
},
5661
{
5762
name: 'useSpecVersion',
5863
type: Boolean,
@@ -65,11 +70,6 @@ export default class OpenAPICommand extends Command {
6570
description: 'Return the command results as a JSON object instead of a pretty output.',
6671
},
6772
this.getGitHubArg(),
68-
{
69-
name: 'workingDirectory',
70-
type: String,
71-
description: 'Working directory (for usage with relative external references)',
72-
},
7373
{
7474
name: 'create',
7575
type: Boolean,

src/lib/promptWrapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export default async function promptTerminal<T extends string = string>(
3535
if (ciDetect() && process.env.NODE_ENV !== 'testing') {
3636
process.stdout.write('\n');
3737
process.stdout.write(
38-
'Yikes! Looks like we prompted you for something in a CI environment. Are you missing an argument?'
38+
'Yikes! Looks like we were about to prompt you for something in a CI environment. Are you missing an argument?'
3939
);
4040
process.stdout.write('\n\n');
4141
process.stdout.write('Try running `rdme <command> --help` or get in touch at support@readme.io.');

0 commit comments

Comments
 (0)