updated reamde and language files and args
This commit is contained in:
18
main.py
18
main.py
@@ -12,16 +12,16 @@ with open('config.json', 'r') as file:
|
||||
|
||||
# Handle the command line arguments
|
||||
config = args.handle_arguments(sys.argv, config)
|
||||
print(config)
|
||||
|
||||
dictation = ''
|
||||
|
||||
# TODO: match case
|
||||
if config['mode'] == 'words':
|
||||
dictate.words(config)
|
||||
if config['mode'] == 'timed':
|
||||
dictate.timed(config)
|
||||
if config['mode'] == 'quote':
|
||||
dictate.quote(config)
|
||||
if config['mode'] == 'file':
|
||||
dictate.file(config)
|
||||
match config['mode']:
|
||||
case 'word':
|
||||
dictate.words(config)
|
||||
case 'timed':
|
||||
dictate.timed(config)
|
||||
case 'quote':
|
||||
dictate.quote(config)
|
||||
case 'file':
|
||||
dictate.file(config)
|
||||
|
||||
Reference in New Issue
Block a user