package
0.0.12
Repository: https://github.com/anthony-dong/golang.git
Documentation: pkg.go.dev

# README

devtool

介绍

devtool 是一个强大的Cli工具,其中包含了日常开发中的一些可能涉及到的高频工具,这里避免重复造轮子,所以一般就是日常用的一些工具但是市场上没有符合自己需求的,得自己写!

➜  devtool  --help      
Usage: devtool [OPTIONS] COMMAND

Commands:
  codec       The Encode and Decode data tool
  cpp         The cpp language tools
  curl        Send thrift like curl
  gen         Auto compile thrift、protobuf IDL
  git         The git tools
  go          The golang language tools
  help        Help about any command
  hexo        The Hexo tool
  json        The Json tool
  proxy       Proxy and Capture thrift/http/https requests
  run         Run task templates
  upload      File upload tool

Options:
      --config-file string   Set the config file
  -h, --help                 help for devtool
      --log-level string     Set the log level in [debug|info|notice|warn|error] (default "info")
  -v, --verbose              Turn on verbose mode
      --version              version for devtool

Use "devtool COMMAND --help" for more information about a command.

To get more help with devtool, check out our guides at https://github.com/anthony-dong/golang

如何下载

  1. go install 下载
# 注意Go版本大于等于1.18
go install -v github.com/anthony-dong/golang/cli/devtool@latest
  1. release 下载 https://github.com/anthony-dong/golang/releases
# 1. update
sudo apt update

# 2. install
sudo apt-get install -y libpcap-dev

配置文件

优先级顺序:

  1. 读取 --config-file 参数传递的配置文件地址
  2. 读取 $(pwd)/.devtool.yaml
  3. 读取 dirname($0)/.devtool.yaml
  4. 读取 $HOME/.devtool/config.yaml

类型定义:config.go

工具介绍

编解码工具 - codec

Go开发工具 - golang

写博客工具 - hexo

流量解析工具 - tcpdump

任务模版工具 - run

文件上传工具 - upload

JSON工具 - json

CPP工具 - cpp

Thrift/HTTPS/HTTP代理和抓包工具

像curl一样发起Thrift请求