Exemple #1
0
    def handle(self, *args, **options):
        config = get_config()

        with chdir(SQLIBRIST_DIRECTORY):
            try:
                options['func'](Args(options), config, connection)
            except SqlibristException as e:
                handle_exception(e)
Exemple #2
0
def main():
    parser = get_command_parser()
    args = parser.parse_args()
    config = LazyConfig(args)
    try:
        args.func(args, config)
    except SqlibristException as e:
        handle_exception(e)