@opensea/i18n-dl
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -200,2 +200,5 @@ #!/usr/bin/env node | ||
// src/cli.ts | ||
function parseBoolean(boolValue) { | ||
return typeof boolValue === "string" ? !!boolValue && !(boolValue.toLowerCase() === "false" || boolValue.toLowerCase() === "0") : Boolean(boolValue); | ||
} | ||
var run = async () => { | ||
@@ -222,3 +225,7 @@ program.name("downloadTranslationKeys").description("CLI to upload i18n translation keys").requiredOption( | ||
process.env.DIRECTORY | ||
).option("-P --prettify", "Prettify the downloaded JSON files", true); | ||
).option( | ||
"-P --prettify [prettify]", | ||
"Prettify the downloaded JSON files", | ||
true | ||
); | ||
const { userSecret, userIdentifier, ref, projectId, directory, prettify } = program.parse().opts(); | ||
@@ -232,3 +239,3 @@ const spinner = ora("Processing files for translations...").start(); | ||
directory, | ||
prettify | ||
prettify: parseBoolean(prettify) | ||
}); | ||
@@ -235,0 +242,0 @@ spinner.succeed("Files for translation downloaded!"); |
{ | ||
"name": "@opensea/i18n-dl", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Package for i18n key download", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
8314
229