From 90033692d4d22e90c23fbc53e0cf4f20ea597760 Mon Sep 17 00:00:00 2001 From: Kay Kurokawa Date: Thu, 1 Jun 2017 15:24:38 -0400 Subject: [PATCH] normalize file_set_status CLI args with file_list, add name arg to file_list,file_set_status,file_delete --- lbrynet/lbrynet_daemon/Daemon.py | 36 +++++++++++++++++++------------- 1 file changed, 22 insertions(+), 14 deletions(-) diff --git a/lbrynet/lbrynet_daemon/Daemon.py b/lbrynet/lbrynet_daemon/Daemon.py index 44505556c..a473b286b 100644 --- a/lbrynet/lbrynet_daemon/Daemon.py +++ b/lbrynet/lbrynet_daemon/Daemon.py @@ -1335,16 +1335,18 @@ class Daemon(AuthJSONRPCServer): Usage: file_list [--sd_hash=] [--file_name=] [--stream_hash=] [--claim_id=] [--outpoint=] [--rowid=] + [--name=] [-f] Options: - --sd_hash= : set status of file with matching sd hash - --file_name= : set status of file with matching file name in the + --sd_hash= : get file with matching sd hash + --file_name= : get file with matching file name in the downloads folder - --stream_hash= : set status of file with matching stream hash - --claim_id= : set status of file with matching claim id - --outpoint= : set status of file with matching claim outpoint - --rowid= : set status of file with matching row id + --stream_hash= : get file with matching stream hash + --claim_id= : get file with matching claim id + --outpoint= : get file with matching claim outpoint + --rowid= : get file with matching row id + --name= : get file with matching associated name claim -f : full status, populate the 'message' and 'size' fields Returns: @@ -1640,16 +1642,20 @@ class Daemon(AuthJSONRPCServer): Start or stop downloading a file Usage: - file_set_status [-s ] [-n ] [-h ] - [-c ] [-o ] [-r ] + file_set_status [--sd_hash=] [--file_name=] + [--stream_hash=] [--claim_id=] + [--outpoint=] [--rowid=] + [--name=] Options: - -s : set status of file with matching sd hash - -n : set status of file with matching file name in the downloads folder - -h : set status of file with matching stream hash - -c : set status of file with matching claim id - -o : set status of file with matching claim outpoint - -r : set status of file with matching row id + --sd_hash= : set status of file with matching sd hash + --file_name= : set status of file with matching file name in the + downloads folder + --stream_hash= : set status of file with matching stream hash + --claim_id= : set status of file with matching claim id + --outpoint= : set status of file with matching claim outpoint + --rowid= : set status of file with matching row id + --name= : set status of file with matching associated name claim Returns: (str) Confirmation message @@ -1685,6 +1691,7 @@ class Daemon(AuthJSONRPCServer): file_delete [-a | -f] [--sd_hash=] [--file_name=] [--stream_hash=] [--claim_id=] [--outpoint=] [--rowid=] + [--name=] Options: -a : delete file from downloads and delete stored blobs @@ -1695,6 +1702,7 @@ class Daemon(AuthJSONRPCServer): --claim_id= : delete by file claim id --outpoint= : delete by file claim outpoint --rowid= : delete by file row id + --name= : delete by associated name claim of file Returns: (bool) true if deletion was successful