normalize file_set_status CLI args with file_list, add name arg to file_list,file_set_status,file_delete
This commit is contained in:
parent
1cf32436f2
commit
90033692d4
1 changed files with 22 additions and 14 deletions
|
@ -1335,16 +1335,18 @@ class Daemon(AuthJSONRPCServer):
|
||||||
Usage:
|
Usage:
|
||||||
file_list [--sd_hash=<sd_hash>] [--file_name=<file_name>] [--stream_hash=<stream_hash>]
|
file_list [--sd_hash=<sd_hash>] [--file_name=<file_name>] [--stream_hash=<stream_hash>]
|
||||||
[--claim_id=<claim_id>] [--outpoint=<outpoint>] [--rowid=<rowid>]
|
[--claim_id=<claim_id>] [--outpoint=<outpoint>] [--rowid=<rowid>]
|
||||||
|
[--name=<name>]
|
||||||
[-f]
|
[-f]
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
--sd_hash=<sd_hash> : set status of file with matching sd hash
|
--sd_hash=<sd_hash> : get file with matching sd hash
|
||||||
--file_name=<file_name> : set status of file with matching file name in the
|
--file_name=<file_name> : get file with matching file name in the
|
||||||
downloads folder
|
downloads folder
|
||||||
--stream_hash=<stream_hash> : set status of file with matching stream hash
|
--stream_hash=<stream_hash> : get file with matching stream hash
|
||||||
--claim_id=<claim_id> : set status of file with matching claim id
|
--claim_id=<claim_id> : get file with matching claim id
|
||||||
--outpoint=<outpoint> : set status of file with matching claim outpoint
|
--outpoint=<outpoint> : get file with matching claim outpoint
|
||||||
--rowid=<rowid> : set status of file with matching row id
|
--rowid=<rowid> : get file with matching row id
|
||||||
|
--name=<name> : get file with matching associated name claim
|
||||||
-f : full status, populate the 'message' and 'size' fields
|
-f : full status, populate the 'message' and 'size' fields
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
|
@ -1640,16 +1642,20 @@ class Daemon(AuthJSONRPCServer):
|
||||||
Start or stop downloading a file
|
Start or stop downloading a file
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
file_set_status <status> [-s <sd_hash>] [-n <file_name>] [-h <stream_hash>]
|
file_set_status <status> [--sd_hash=<sd_hash>] [--file_name=<file_name>]
|
||||||
[-c <claim_id>] [-o <outpoint>] [-r <rowid>]
|
[--stream_hash=<stream_hash>] [--claim_id=<claim_id>]
|
||||||
|
[--outpoint=<outpoint>] [--rowid=<rowid>]
|
||||||
|
[--name=<name>]
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
-s <sd_hash> : set status of file with matching sd hash
|
--sd_hash=<sd_hash> : set status of file with matching sd hash
|
||||||
-n <file_name> : set status of file with matching file name in the downloads folder
|
--file_name=<file_name> : set status of file with matching file name in the
|
||||||
-h <stream_hash> : set status of file with matching stream hash
|
downloads folder
|
||||||
-c <claim_id> : set status of file with matching claim id
|
--stream_hash=<stream_hash> : set status of file with matching stream hash
|
||||||
-o <outpoint> : set status of file with matching claim outpoint
|
--claim_id=<claim_id> : set status of file with matching claim id
|
||||||
-r <rowid> : set status of file with matching row id
|
--outpoint=<outpoint> : set status of file with matching claim outpoint
|
||||||
|
--rowid=<rowid> : set status of file with matching row id
|
||||||
|
--name=<name> : set status of file with matching associated name claim
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
(str) Confirmation message
|
(str) Confirmation message
|
||||||
|
@ -1685,6 +1691,7 @@ class Daemon(AuthJSONRPCServer):
|
||||||
file_delete [-a | -f] [--sd_hash=<sd_hash>] [--file_name=<file_name>]
|
file_delete [-a | -f] [--sd_hash=<sd_hash>] [--file_name=<file_name>]
|
||||||
[--stream_hash=<stream_hash>] [--claim_id=<claim_id>]
|
[--stream_hash=<stream_hash>] [--claim_id=<claim_id>]
|
||||||
[--outpoint=<outpoint>] [--rowid=<rowid>]
|
[--outpoint=<outpoint>] [--rowid=<rowid>]
|
||||||
|
[--name=<name>]
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
-a : delete file from downloads and delete stored blobs
|
-a : delete file from downloads and delete stored blobs
|
||||||
|
@ -1695,6 +1702,7 @@ class Daemon(AuthJSONRPCServer):
|
||||||
--claim_id=<claim_id> : delete by file claim id
|
--claim_id=<claim_id> : delete by file claim id
|
||||||
--outpoint=<outpoint> : delete by file claim outpoint
|
--outpoint=<outpoint> : delete by file claim outpoint
|
||||||
--rowid=<rowid> : delete by file row id
|
--rowid=<rowid> : delete by file row id
|
||||||
|
--name=<name> : delete by associated name claim of file
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
(bool) true if deletion was successful
|
(bool) true if deletion was successful
|
||||||
|
|
Loading…
Reference in a new issue