mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 08:08:53 -05:00
utils: s/redis/redict/
Signed-off-by: Drew DeVault <sir@cmpwn.com>
This commit is contained in:
parent
a7c55c25c7
commit
b8b5e868a3
@ -104,18 +104,18 @@ def convert_entry_to_objects_array(cmd, docs):
|
||||
|
||||
|
||||
# Figure out where the sources are
|
||||
srcdir = os.path.abspath(os.path.dirname(os.path.abspath(__file__)) + "/../src")
|
||||
srcdir = "./src"
|
||||
|
||||
# MAIN
|
||||
if __name__ == '__main__':
|
||||
opts = {
|
||||
'description': 'Transform the output from `redis-cli --json` using COMMAND and COMMAND DOCS to a single commands.json format.',
|
||||
'epilog': f'Usage example: {argv[0]} --cli src/redis-cli --port 6379 > commands.json'
|
||||
'description': 'Transform the output from `redict-cli --json` using COMMAND and COMMAND DOCS to a single commands.json format.',
|
||||
'epilog': f'Usage example: {argv[0]} --cli src/redict-cli --port 6379 > commands.json'
|
||||
}
|
||||
parser = argparse.ArgumentParser(**opts)
|
||||
parser.add_argument('--host', type=str, default='localhost')
|
||||
parser.add_argument('--port', type=int, default=6379)
|
||||
parser.add_argument('--cli', type=str, default='%s/redis-cli' % srcdir)
|
||||
parser.add_argument('--cli', type=str, default='%s/redict-cli' % srcdir)
|
||||
args = parser.parse_args()
|
||||
|
||||
payload = OrderedDict()
|
||||
|
Loading…
Reference in New Issue
Block a user