Skip to content

Commit

Permalink
Build: August 16, 2024, 09:07:10 PM
Browse files Browse the repository at this point in the history
  • Loading branch information
SHSharkar committed Aug 16, 2024
1 parent e807fb7 commit 2485f3c
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 15 deletions.
28 changes: 20 additions & 8 deletions out/cli.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -44639,7 +44639,7 @@ function G3(t2, e3) {
// package.json
var package_default = {
name: "gitwz",
version: "8.1.0",
version: "8.2.0",
description: "Transform your git commits quickly and easily with AI (OpenAI GPT). Using this tool, you can make your git commits more visually appealing. It only takes a few seconds to create eye-catching git commits that stand out.",
type: "module",
license: "MIT",
Expand Down Expand Up @@ -61281,13 +61281,25 @@ var getConfig = () => {
config8[configKey] = void 0;
continue;
}
try {
const validator = configValidators[configKey];
config8[configKey] = validator(config8[configKey] ?? configFromEnv[configKey], config8);
} catch (error) {
const suggestedKey = configKey.startsWith("GW_") ? configKey : `GW_${configKey}`;
$e(`'${configKey}' name is invalid, it should be '${suggestedKey}' or it doesn't exist.`);
$e(`Manually fix the '.env' file or global '~/.gitwz' config file.`);
const validConfigKey = configKey.startsWith("GW_") ? configKey : `GW_${configKey}`;
if (validConfigKey in configValidators) {
try {
const validator = configValidators[validConfigKey];
config8[validConfigKey] = validator(
config8[configKey] ?? configFromEnv[validConfigKey],
config8
);
if (validConfigKey !== configKey) {
delete config8[configKey];
}
} catch (error) {
$e(`'${configKey}' is invalid or doesn't exist. Valid keys start with 'GW_'.`);
$e(`Please manually fix the global '~/.gitwz' config file.`);
process.exit(1);
}
} else {
$e(`'${configKey}' is not a recognized configuration key.`);
$e(`Please manually fix the global '~/.gitwz' config file.`);
process.exit(1);
}
}
Expand Down
26 changes: 19 additions & 7 deletions out/github-action.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -76522,13 +76522,25 @@ var getConfig = () => {
config7[configKey] = void 0;
continue;
}
try {
const validator = configValidators[configKey];
config7[configKey] = validator(config7[configKey] ?? configFromEnv[configKey], config7);
} catch (error) {
const suggestedKey = configKey.startsWith("GW_") ? configKey : `GW_${configKey}`;
$e(`'${configKey}' name is invalid, it should be '${suggestedKey}' or it doesn't exist.`);
$e(`Manually fix the '.env' file or global '~/.gitwz' config file.`);
const validConfigKey = configKey.startsWith("GW_") ? configKey : `GW_${configKey}`;
if (validConfigKey in configValidators) {
try {
const validator = configValidators[validConfigKey];
config7[validConfigKey] = validator(
config7[configKey] ?? configFromEnv[validConfigKey],
config7
);
if (validConfigKey !== configKey) {
delete config7[configKey];
}
} catch (error) {
$e(`'${configKey}' is invalid or doesn't exist. Valid keys start with 'GW_'.`);
$e(`Please manually fix the global '~/.gitwz' config file.`);
process.exit(1);
}
} else {
$e(`'${configKey}' is not a recognized configuration key.`);
$e(`Please manually fix the global '~/.gitwz' config file.`);
process.exit(1);
}
}
Expand Down

0 comments on commit 2485f3c

Please sign in to comment.