Uploads files to Yandex.Disk.
First get an OAuth token with Yandex.Disk REST API access.
You can create your own OAuth app here: https://oauth.yandex.ru/client/new
Then see here for how to get token: https://yandex.ru/dev/oauth/doc/dg/tasks/get-oauth-token.html
For more info, visit this page: https://yandex.ru/dev/oauth/
go install github.com/MOZGIII/yadisk-uploader/cmd/yadisk-upload@master
To upload to disk:
yadisk-upload -token [your OAuth token] source/file.txt disk:/remote/file.txt
To upload to app directory:
yadisk-upload -token [your OAuth token] source/file.txt app:/remote/file.txt
git clone https://github.com/MOZGIII/yadisk-uploader.git
cd yadisk-uploader/cmd/yadisk-upload
go get ./...
go run main.go -token [your OAuth token] source/file.txt disk:/remote/file.txt
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request