You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: removed newlines by default in secrets env command
feat: added option to preserve newlines
chore: removed listeners after closing edit process
chore: added fastcheck tests for added features
chore: automatically removing -- from parsed command list
@@ -14,26 +15,22 @@ class CommandEnv extends CommandPolykey {
14
15
super(...args);
15
16
this.name('env');
16
17
this.description(
17
-
`Run a command with the given secrets and env variables using process replacement. If no command is specified then the variables are printed to stdout in the format specified by env-format.`,
18
+
`Run a command with the given secrets and env variables. If no command is specified then the variables are printed to stdout in the format specified by env-format.`,
18
19
);
19
20
this.addOption(binOptions.nodeId);
20
21
this.addOption(binOptions.clientHost);
21
22
this.addOption(binOptions.clientPort);
22
23
this.addOption(binOptions.envFormat);
23
24
this.addOption(binOptions.envInvalid);
24
25
this.addOption(binOptions.envDuplicate);
26
+
this.addOption(binOptions.preserveNewline);
25
27
this.argument(
26
28
'<args...>',
27
29
'command and arguments formatted as [envPaths...][-- cmd [cmdArgs...]]',
28
30
binParsers.parseEnvArgs,
29
31
);
30
-
this.passThroughOptions();// Let -- pass through as-is to parse as delimiter for cmd
0 commit comments