Skip to content

Commit 9733e0b

Browse files
committed
Title-cased msgs.log_VERSION
1 parent f824270 commit 9733e0b

4 files changed

Lines changed: 6 additions & 4 deletions

File tree

remove-json-keys/src/remove_json_keys/assets/data/messages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"log_TYPE": { "message": "Type" },
2020
"log_TO_CREATE_DEFAULT_CONFIG": { "message": "to create default config file" },
2121
"log_FOR_AVAIL_OPTIONS": { "message": "for available options" },
22-
"log_VERSION": { "message": "version" },
22+
"log_VERSION": { "message": "Version" },
2323
"tip_FOR_MORE_HELP_VISIT": { "message": "For more help, visit" },
2424
"tip_PASS_FORCE_TO_OVERWRITE": { "message": "Pass --force to overwrite" },
2525
"tip_MOVE_CONFIG_TO_ROOT": { "message": "Move config file to root of project you wish to use it in" },

remove-json-keys/src/remove_json_keys/lib/log.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ def overwrite_print(msg, *args, **kwargs):
2929
sys.stdout.write('\r' + msg.format(*args, **kwargs).ljust(terminal_width)[:terminal_width])
3030
def success(msg, *args, **kwargs) : print(f'\n{colors.bg}{msg.format(*args, **kwargs)}{colors.nc}')
3131
def tip(msg, *args, **kwargs) : print(f'\n{colors.bc}TIP: {msg.format(*args, **kwargs)}{colors.nc}')
32-
def version(cli) : print(f'\n{colors.by}{cli.name}\n{colors.bw}{cli.msgs.log_VERSION}: {cli.version}{colors.nc}')
32+
def version(cli):
33+
print(f'\n{colors.by}{cli.name}\n{colors.bw}{cli.msgs.log_VERSION.lower()}: {cli.version}{colors.nc}')
3334
def warn(msg, *args, **kwargs) : print(f'\n{colors.bo}WARNING: {msg.format(*args, **kwargs)}{colors.nc}')
3435

3536
def debug(msg, cli=None, *args, **kwargs):

translate-messages/src/translate_messages/assets/data/messages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"log_TYPE": { "message": "Type" },
2121
"log_TO_CREATE_DEFAULT_CONFIG": { "message": "to create default config file" },
2222
"log_FOR_AVAIL_OPTIONS": { "message": "for available options" },
23-
"log_VERSION": { "message": "version" },
23+
"log_VERSION": { "message": "Version" },
2424
"tip_FOR_MORE_HELP_VISIT": { "message": "For more help, visit" },
2525
"tip_PASS_FORCE_TO_OVERWRITE": { "message": "Pass --force to overwrite" },
2626
"tip_MOVE_CONFIG_TO_ROOT": { "message": "Move config file to root of project you wish to use it in" },

translate-messages/src/translate_messages/lib/log.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ def overwrite_print(msg, *args, **kwargs):
2929
sys.stdout.write('\r' + msg.format(*args, **kwargs).ljust(terminal_width)[:terminal_width])
3030
def success(msg, *args, **kwargs) : print(f'\n{colors.bg}{msg.format(*args, **kwargs)}{colors.nc}')
3131
def tip(msg, *args, **kwargs) : print(f'\n{colors.bc}TIP: {msg.format(*args, **kwargs)}{colors.nc}')
32-
def version(cli) : print(f'\n{colors.by}{cli.name}\n{colors.bw}{cli.msgs.log_VERSION}: {cli.version}{colors.nc}')
32+
def version(cli):
33+
print(f'\n{colors.by}{cli.name}\n{colors.bw}{cli.msgs.log_VERSION.lower()}: {cli.version}{colors.nc}')
3334
def warn(msg, *args, **kwargs) : print(f'\n{colors.bo}WARNING: {msg.format(*args, **kwargs)}{colors.nc}')
3435

3536
def debug(msg, cli=None, *args, **kwargs):

0 commit comments

Comments
 (0)