Skip to content

Commit

Permalink
docs: Add usage of extension manager
Browse files Browse the repository at this point in the history
  • Loading branch information
pluveto committed Feb 5, 2022
1 parent fd954df commit 84b27e1
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,11 @@ For more help, type `-h` argument

```
Upload anything to github repo and then get its link.
Upload anything to github repo or other remote storages and then get its link.
For more information: https://github.com/pluveto/upgit
Usage: upgit.exe [--target-dir TARGET-DIR] [--verbose] [--size-limit SIZE-LIMIT] [--wait] [--clean] [--raw] [--no-log] [--output-type OUTPUT-TYPE] [--output-format OUTPUT-FORMAT] FILE [FILE ...]
Usage: upgit [--target-dir TARGET-DIR] [--verbose] [--size-limit SIZE-LIMIT] [--wait] [--clean] [--raw] [--no-log] [--uploader UPLOADER] [--output-type OUTPUT-TYPE] [--output-format OUTPUT-FORMAT] FILE [FILE ...]
Positional arguments:
FILE local file path to upload. :clipboard for uploading clipboard image
Expand All @@ -85,11 +86,21 @@ Options:
--clean, -c when set, remove local file after upload
--raw, -r when set, output non-replaced raw url
--no-log, -n when set, disable logging
--uploader UPLOADER, -u UPLOADER
uploader to use. if not set, will follow config
--output-type OUTPUT-TYPE, -o OUTPUT-TYPE
output type, supports stdout, clipboard [default: stdout]
--output-format OUTPUT-FORMAT, -f OUTPUT-FORMAT
output format, supports url, markdown and your customs [default: url]
--help, -h display this help and exit
Manage extensions:
./ upgit ext ACTION
Actions:
ls list all downloadable extensions:
add smms.jsonc install SMMS uploader
remove smms.jsonc remove SMMS uploader
```

### Use it for Typora
Expand Down
15 changes: 13 additions & 2 deletions docs/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
## 特点

+ 支持多平台,包括 Linux、Windows macOS
+ 支持**多种上传器**,目前包括 Github 和 SMMS
+ 不限制文件类型
+ 支持从**剪贴板上传**
+ 自定义**自动重命名**规则(包括路径)
Expand Down Expand Up @@ -62,10 +63,10 @@

```shell

Upload anything to github repo and then get its link.
Upload anything to github repo or other remote storages and then get its link.
For more information: https://github.com/pluveto/upgit

Usage: upgit.exe [--target-dir TARGET-DIR] [--verbose] [--size-limit SIZE-LIMIT] [--wait] [--clean] [--raw] [--no-log] [--output-type OUTPUT-TYPE] [--output-format OUTPUT-FORMAT] FILE [FILE ...]
Usage: upgit [--target-dir TARGET-DIR] [--verbose] [--size-limit SIZE-LIMIT] [--wait] [--clean] [--raw] [--no-log] [--uploader UPLOADER] [--output-type OUTPUT-TYPE] [--output-format OUTPUT-FORMAT] FILE [FILE ...]

Positional arguments:
FILE local file path to upload. :clipboard for uploading clipboard image
Expand All @@ -80,11 +81,21 @@ Options:
--clean, -c when set, remove local file after upload
--raw, -r when set, output non-replaced raw url
--no-log, -n when set, disable logging
--uploader UPLOADER, -u UPLOADER
uploader to use. if not set, will follow config
--output-type OUTPUT-TYPE, -o OUTPUT-TYPE
output type, supports stdout, clipboard [default: stdout]
--output-format OUTPUT-FORMAT, -f OUTPUT-FORMAT
output format, supports url, markdown and your customs [default: url]
--help, -h display this help and exit

Manage extensions:
./ upgit ext ACTION

Actions:
ls list all downloadable extensions:
add smms.jsonc install SMMS uploader
remove smms.jsonc remove SMMS uploader
```
Expand Down

0 comments on commit 84b27e1

Please sign in to comment.