Skip to content

Commit

Permalink
🚧 Remove click command
Browse files Browse the repository at this point in the history
  • Loading branch information
lsabi committed Sep 17, 2023
1 parent babc139 commit 0ae82d1
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions rethinkdb/cli/_restore.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
"""
Restore loads data into a RethinkDB cluster from an archive.
"""

import click
import copy
import multiprocessing
import optparse
Expand Down Expand Up @@ -325,16 +323,7 @@ def do_restore(options):
shutil.rmtree(temp_dir)


@click.command
def cmd_restore():
"""
Restore loads data into a RethinkDB cluster from an archive.
"""
click.echo("restore command")
argv = []
prog = []
start_time = time.time()

def main(argv=None, prog=None):
if argv is None:
argv = sys.argv[1:]
options = parse_options(argv, prog=prog)
Expand All @@ -344,5 +333,8 @@ def cmd_restore():
except RuntimeError as ex:
print(ex, file=sys.stderr)
return 1
print(f"Restore done in {time.time() - start_time}")
return 0


if __name__ == "__main__":
exit(main())

0 comments on commit 0ae82d1

Please sign in to comment.