Skip to content

XRSec/bitiful-typora-upload-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bitiful Typora Upload CLI

show1

show2

Install & Use

  1. Release Download
bitiful # require config file
bitiful "/example/example.png"
bitiful "https://example.com/example.png"

or dev build

git clone https://github.com/XRSec/bitiful-typora-upload-cli.git
cd bitiful-typora-upload-cli
# Edit bitifulUrl in bitiful-typora-upload-cli.go
CGO_ENABLED=0 go build -o bitiful
# mv bitiful /usr/local/bin
# cd .. && rm -rf bitiful-typora-upload-cli
  1. Open Typora and set cli -> Preference -> Image -> Upload Image -> Custom Command -> /home/xxx/bitiful

Config

Endpoint: s3.bitiful.net
Region: cn-east-1
AccessKeyID: "xxxxxxxxxxx"
AccessKeySecret: "xxxxxxxxxxxxxxxx"
BucketName: "xxxxxxxxxx"
Path: "/xxxxxxxx/"

Cover image

bitiful -u -n "20220903" -f https://example.com/20220903.jpg
bitiful -u -f/Users/xxx/xxx.png -nTest.png

Doing

  • file
  • url
  • [?] ftp/smb/afs