🌐 AI搜索 & 代理 主页
Skip to content

Commit 753bb1f

Browse files
authored
🚧 Remove the click library reference
1 parent b7ae9d0 commit 753bb1f

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

rethinkdb/cli/_export.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
"""
2121
Export exports data from a RethinkDB cluster into a directory.
2222
"""
23-
import click
2423
import csv
2524
import ctypes
2625
import datetime
@@ -647,14 +646,7 @@ def run(options):
647646
f"Failed to move temporary directory to output directory ({options.directory}): {e.strerror}"
648647
)
649648

650-
@click.command
651-
def cmd_export():
652-
"""
653-
Export data from a RethinkDB cluster into a directory.
654-
"""
655-
click.echo("export command")
656-
argv = []
657-
prog = []
649+
def main(argv=None, prog=None):
658650
options = parse_options(argv or sys.argv[1:], prog=prog)
659651

660652
start_time = time.time()
@@ -666,5 +658,9 @@ def cmd_export():
666658
print(ex, file=sys.stderr)
667659
return 1
668660
if not options.quiet:
669-
print(f" Done ({time.time() - start_time}:.2f seconds)")
661+
print(" Done (%.2f seconds)" % (time.time() - start_time))
670662
return 0
663+
664+
665+
if __name__ == "__main__":
666+
sys.exit(main())

0 commit comments

Comments
 (0)