bnb-chain / greenfield-cmd

support cmd tool for Greenfield
GNU Lesser General Public License v3.0
27 stars 12 forks source link

feat: improve cmd of downloading and uploading #90

Closed flywukong closed 11 months ago

flywukong commented 11 months ago

Description

  1. Support upload, download, print details and speed
  2. Improve sealing information prompts
  3. Automatically convert 2G files into multipart uploads
  4. Solve the problem of recursive upload folder objectname parsing err
  5. support download into a temp file and rename it the right name after downloading finish

Rationale

improve cmd API

Example

wayen@c02fvfsdmd6m qa-test % ./gnfd-cmd  object put test11  gnfd://test11x/dss111123

object dss111123 created on chain
transaction hash:  0EA8971BF4CA0BF59D66A0261C99E558CB6CEB8D527BC7DA5D91435BE7390BDD
uploading progress: 99.81% [ 1.04G / 1.05G ], : 3.34 MB/s
sealing...
sealing...
sealing...
upload dss111123 to gnfd://test11x/dss111123

 qa-test % ./gnfd-cmd object get gnfd://quota123/ds1xlk11121231121 download11x11
Please enter a passphrase now:
downloding progress: 97.93% [ 44.84M / 45.79M ], rate: 1.10 MB/s
download object ds1xlk11121231121, the file path is download11x11, content length:48010024

Changes



Notable changes:
* add each change in a bullet point here
* ...