[cli] Remove mri workaround (#10452)

As of https://github.com/vercel/vercel/pull/10389 the `mri` package is no longer used and this workaround can be removed.
This commit is contained in:
Trek Glowacki
2023-09-05 09:17:18 -07:00
committed by GitHub
parent e43191b186
commit adb9ac87ce
2 changed files with 6 additions and 13 deletions

View File

@@ -333,19 +333,7 @@ async function run({ output, contextName, currentTeam, client }) {
return 1;
}
const [name, parsedValue] = args;
const [originalName, originalValue] = client.argv.slice(-2);
let value = parsedValue;
if (
name === originalName &&
typeof parsedValue === 'boolean' &&
parsedValue !== originalValue
) {
// Corner case where `mri` transforms the secret value into a boolean because
// it starts with a `-` so it thinks its a flag, so we use the original value instead.
value = originalValue;
}
const [name, value] = args;
if (typeof value === 'boolean') {
const example = chalk.cyan(