Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shoothzj/cli
https://github.com/shoothzj/cli
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/shoothzj/cli
- Owner: shoothzj
- License: apache-2.0
- Created: 2021-08-07T15:49:26.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-27T02:26:03.000Z (about 3 years ago)
- Last Synced: 2024-10-16T20:16:26.493Z (about 1 month ago)
- Language: Go
- Size: 36.1 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cli
# 命令介绍
## kafka
- Kafka发送时候携带头部sh-time
### produce
```bash
./cli kafka --host "localhost" produce --topic test-1 --size 10248000 --tps 1
```### consume
```bash
./cli kafka --host "localhost" consume --topic test-1
```## scp
```bash
./cli scp --hosts 127.0.0.1 --user root --password pwd --port 22 --dist /home/sh/testfile --content "I am Magneto"
```## ssh
```bash
./cli ssh --hosts 127.0.0.1 --user root --password pwd --port 22 --commands "ls"
```# glog 级别
- 10 every detail
- 4 info
- 3 warn
- 2 error
- 1 fatal