costool - 騰訊雲cos快捷工具。
阿新 • • 發佈:2022-05-08
目錄
一個騰訊雲cos(物件儲存)非官方快速上傳和下載的工具,使用官方go-sdk二次開發。可以用於以下場景。
- 備份一些配置檔案,比如
.bashrc
.vimrc
.gdbinit
等。 - 快速部署靜態網頁,設定一鍵部署指令。
- 多裝置傳送檔案 。
- 其他騷操作。
功能計劃有:
使用cos做圖床,可以看這個專案,也可以使用Pic-Go之類的。
https://gitee.com/qi_xmu/quplor-go.git
使用截圖
使用方法
配置檔案
需要放在使用者目錄下的.costool.yaml
檔案中格式如下:
UserID: "xxxx"
SecretID: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
SecretKey: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Token: ""
注意,鍵值之間存在空格。(建議使用專案金鑰,相對安全)
安裝方法
-
下載預編譯包
[第一個完整版本 · @奇/costool - Gitee.com](https://gitee. com/qi_xmu/costool/releases/v1.0)
-
自行編譯,需要安裝go環境
git clone https://gitee.com/qi_xmu/costool.git cd costool make && sudo make install
其他
遇到bug或者問問題,可以提出issuse反饋。
https://gitee. com/qi_xmu/costool