typora-s3
CLI tool to upload object to s3-compatible storage backend and set download
policy for it.
Build
$ git clone https://github.com/fengxsong/typora-s3.git
$ cd typora-s3
$ CGO_ENABLE=0 go build -o typora-s3 typora-s3.go
Configuration
configuration can be set by YAML file, environment variables and command line flags. for example.
$ cat $HOME/.typora-s3.yaml
endpoint: $s3addr
accessKey: $AK
secretKey: $SK
useSsl: true
hashAlg: md5
$ # or get flags from help usage
$ go run typora-s3.go -h
integrate with typora editor
Contributions
PR and issues are welcome!