@@ -45,8 +45,8 @@ chmod +x ~/tusc && mv ~/tusc ~/.local/bin/tusc
4545 tusc is bash implementation of tus-client (https://tus.io).
4646
4747 Usage:
48- tusc <--options>
49- tusc <host> <file> [algo]
48+ tusc <--options> -- [curl args]
49+ tusc <host> <file> [algo] -- [curl args]
5050
5151 Options:
5252 -a --algo The algorigthm for key &/or checksum.
@@ -70,8 +70,8 @@ chmod +x ~/tusc && mv ~/tusc ~/.local/bin/tusc
7070 tusc --version # prints current version of itself
7171 tusc 0:1080 ww.mp4 # uploads ww.mp4 to http://0.0.0.0:1080/files/
7272 tusc -H 0:1080 -f ww.mp4 # same as above
73+ tusc -H 0:1080 -f ww.mp4 -- -Lv # same as above plus sends -Lv to curl command
7374 tusc -H 0:1080 -f ww.mp4 -a sha256 # same as above but uses sha256 algo for key/checksum
74- tusc -H 0:1080 -f ww.mp4 -b /store/ # uploads ww.mp4 to http://0.0.0.0:1080/store/
7575```
7676
7777If you want to parse the output of ` tusc ` , pass in ` -C ` (no color) and ` -S ` (no spin) flags. Eg:
@@ -80,6 +80,15 @@ If you want to parse the output of `tusc`, pass in `-C` (no color) and `-S` (no
8080wget $( tusc -H 0:1080 -f ww.mp4 -L -S -C | cut -c 6-999) -O ww.mp4.1
8181```
8282
83+ ### Authentication
84+
85+ If your tusd server requires special header or token for auth, just pass in ` [curl args] ` :
86+ ``` sh
87+ tusc -H 0:1080 -f ww.mp4 -b /store/ -- -H ' Authorization: Bearer <token>'
88+ ```
89+
90+ In fact you can pass in anything after ` -- ` as extra curl parameter.
91+
8392### Preview
8493See ` tusc ` in action with debug mode where the upload is aborted frequently with ` Ctrl+C ` interrupt.
8594
0 commit comments