Пример #1
0
def main():

    args = get_args()

    history = History(calc_ops)

    if args.history_file_path:
        with open(args.history_file_path) as history_file:
            history.from_json(history_file.read())

    command = "noop"

    while command:
        log_command(command)
        command_fn = app_commands.get(command, command_unknown)
        command_fn(history)
        command = get_command()