Skip to content

Commit eef0cae

Browse files
committed
fix: things
1 parent cf03f85 commit eef0cae

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/errors.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ class ErrorPolykeyCLIUnexpectedError<T> extends ErrorPolykeyCLI<T> {
8484
exitCode = sysexits.SOFTWARE;
8585
}
8686

87-
class ErrorPolykeyCLISubprocessFailure<T> extends ErrorPolykeyCLI<T> {
88-
static description = 'A subprocess failed to exit gracefully';
87+
class ErrorPolykeyCLIChildProcessFailure<T> extends ErrorPolykeyCLI<T> {
88+
static description = 'A child process failed to exit gracefully';
8989
exitCode = sysexits.UNKNOWN;
9090
}
9191

@@ -196,7 +196,7 @@ export {
196196
ErrorPolykeyCLIUncaughtException,
197197
ErrorPolykeyCLIUnhandledRejection,
198198
ErrorPolykeyCLIUnexpectedError,
199-
ErrorPolykeyCLISubprocessFailure,
199+
ErrorPolykeyCLIChildProcessFailure,
200200
ErrorPolykeyCLIAsynchronousDeadlock,
201201
ErrorPolykeyCLINodePath,
202202
ErrorPolykeyCLIClientOptions,

src/secrets/CommandEdit.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class CommandEdit extends CommandPolykey {
120120
};
121121
const onError = (e: Error) => {
122122
cleanup();
123-
const error = new errors.ErrorPolykeyCLISubprocessFailure(
123+
const error = new errors.ErrorPolykeyCLIChildProcessFailure(
124124
`Failed to run command '${process.env.EDITOR}'`,
125125
{ cause: e },
126126
);
@@ -129,7 +129,7 @@ class CommandEdit extends CommandPolykey {
129129
const onClose = (code: number | null) => {
130130
cleanup();
131131
if (code !== 0) {
132-
const error = new errors.ErrorPolykeyCLISubprocessFailure(
132+
const error = new errors.ErrorPolykeyCLIChildProcessFailure(
133133
`Editor exited with code ${code}`,
134134
);
135135
reject(error);

src/secrets/CommandEnv.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ class CommandEnv extends CommandPolykey {
239239
exec.execvp(cmd, argv, envp);
240240
} catch (e) {
241241
if ('code' in e && e.code === 'GenericFailure') {
242-
throw new binErrors.ErrorPolykeyCLISubprocessFailure(
242+
throw new binErrors.ErrorPolykeyCLIChildProcessFailure(
243243
`Command failed with error ${e}`,
244244
{
245245
cause: e,

src/utils/options.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ const parents = new commander.Option(
319319
).default(false);
320320

321321
const preserveNewline = new commander.Option(
322-
'-pn --preserve-newline <path>',
322+
'--preserve-newline <path>',
323323
'Preserve the last trailing newline for the secret content',
324324
)
325325
.argParser((value: string, previous: Array<[string, string?, string?]>) => {

0 commit comments

Comments
 (0)