modulepackage
0.0.0-20241127024213-8406435ce349
Repository: https://github.com/crackeer/go-cmd.git
Documentation: pkg.go.dev
# README
简介
使用Golang写的命令行工具,集合多种常用功能,持续增加中
功能列表
- base64-decode base64解码
got base64-decode 'aGVsbG8='
- base64-encode base64编码
got base64-encode 'hello'
- csv2json 解析csv文件到json
got csv2json test.csv
- decrypt-file 文件内容解密
got decrypt-file /your/input/file.txt.enc --output=/your/output/file.txt
- encrypt-file 文件内容加密
got encrypt-file /your/input/file.txt --output=/your/output/file.txt.enc
- go-md5 计算md5
got go-md5 'hello'
- http-post HttpPost请求
got http-post https://www.baidu.com body.json header.json
- http-server 简单的httpServer
got http-server --port=8888 /host/directory
- ip 获取内网ip
got ip
- qrcode 生成二维码
got qrcode 'hello'
- regex-extract 正则提取
got regex-extract /input/file.txt 'hello'
- ssh-exec 远程执行
got ssh-exec test-server-name commands_alias
- ts 转换时间戳
got ts 3528532763523
- unzip 解压zip文件
got unzip test.zip
- zip 压缩文件
got zip test.zip
- download 下载文件
got download file/url1 file/url2
- json-extract json提取
got json-extract file.json
- mysql-insert MySQL插入
got mysql-insert table table/data.json
ctime 获取当前 time
download 批量下载文件
json-extract json提取
mysql-insert MySQL插入
mysql-query MySQL查询