mirror of
https://github.com/nsnail/dot.git
synced 2025-06-17 21:13:21 +08:00
<doc>
This commit is contained in:
parent
4d1a6e6e4e
commit
6c68d46d31
100
README.md
100
README.md
@ -1,20 +1,88 @@
|
|||||||
# dot
|
# dot
|
||||||
|
|
||||||
[中](README.zh-CN.md) | **En**
|
Cross-platform, all-around utility set with a beautiful character interface-the Swiss Army knife
|
||||||
|
|
||||||
A full-featured utility - the programmer's swiss army knife
|
### Brief introduction
|
||||||
|
|
||||||
```mermaid
|
The dot is the one based on the one. NET 7, a cross-platform command-line tool, integrates more than 10 utilities that program developers often use in their daily work, and is constantly increasing.
|
||||||
graph LR;
|
|
||||||
dot-v1.1.5-->File-newline-character-conversion-tool
|
```
|
||||||
dot-v1.1.5-->NTP-clock-synchronization-tool
|
USAGE:
|
||||||
dot-v1.1.5-->Various-text-codec-tools
|
dot [OPTIONS] <COMMAND>
|
||||||
dot-v1.1.5-->Remove-the-file-UTF-BOM
|
|
||||||
dot-v1.1.5-->Remove-the-blank-of-the-file
|
OPTIONS:
|
||||||
dot-v1.1.5-->Random-password-generator
|
-h, --help Prints help information
|
||||||
dot-v1.1.5-->Json-utility
|
-v, --version Prints version information
|
||||||
dot-v1.1.5-->Ip-utility-tool
|
|
||||||
dot-v1.1.5-->GUID-generator
|
COMMANDS:
|
||||||
dot-v1.1.5-->Git-command-bulk-executor
|
git Git batch operation tool
|
||||||
dot-v1.1.5-->Screen-coordinates-and-pixel-picker
|
color Screen coordinate color selection tool
|
||||||
```
|
guid GUID tool
|
||||||
|
ip IP tools
|
||||||
|
json Json tool
|
||||||
|
pwd <password length> <generate type> Random password generator
|
||||||
|
rbom Remove the uf8 bom of the file
|
||||||
|
trim Remove line breaks and spaces at the end of the file
|
||||||
|
text Text encoding tool
|
||||||
|
time Time synchronization tool
|
||||||
|
tolf Convert newline characters to LF
|
||||||
|
get <url> Multithreaded download tool
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Some functional examples
|
||||||
|
|
||||||
|
- ##### Git batch management
|
||||||
|
|
||||||
|
When you have a clone and a lot of git repositories, use this command to pull their latest code all at once:
|
||||||
|
|
||||||
|
```
|
||||||
|
dot git -a "pull" d:\repos
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Similarly, you can execute any git commands on a bunch of git repositories in bulk:
|
||||||
|
|
||||||
|
```
|
||||||
|
dot git -a "config --get http.proxy" d:\repos
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
- ##### High-precision time-clock synchronization
|
||||||
|
Supports parallel requests from multiple NTP clock servers, while removing the network communication duration to set the precise synchronization of the native clocks with the NTP standard time:
|
||||||
|
```
|
||||||
|
dot time -k
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
- ##### Text codec
|
||||||
|
Copy you need to view various codec text in the clipboard, and then enter the following command to view
|
||||||
|
```
|
||||||
|
dot text
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
|
- ##### Multi-threading download tool
|
||||||
|
Support setting the block size, number of threads to replace the single thread wget tool:
|
||||||
|
```
|
||||||
|
dot get https://github.com/nsnail/dot/releases/download/v1.1.1/dot-v1.1.1-win-x64.7z
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
|
- ##### Remove the blank at the end of the file
|
||||||
|
Remove excess spaces and line breaks in the tail of all files in the specified directory:
|
||||||
|
```
|
||||||
|
dot trim d:\repos
|
||||||
|
```
|
||||||
|
|
||||||
|

|
@ -1,18 +1,87 @@
|
|||||||
# dot
|
# dot
|
||||||
|
|
||||||
功能全面的实用工具 - 程序员的瑞士军刀
|
跨平台的、具有美观字符界面的全能实用工具集 - 程序员的瑞士军刀
|
||||||
|
|
||||||
```mermaid
|
### 简介
|
||||||
graph LR;
|
|
||||||
dot-v1.1.5-->文件换行符转换工具
|
dot 是一款基于.NET7,跨平台的命令行工具,集成10多种程序开发人员在日常工作常常用到的实用功能,并且还在不断增加。
|
||||||
dot-v1.1.5-->NTP时钟同步工具
|
|
||||||
dot-v1.1.5-->各种文本编解码工具
|
```
|
||||||
dot-v1.1.5-->移除文件UTF-BOM
|
USAGE:
|
||||||
dot-v1.1.5-->移除文件尾部空白符
|
dot [OPTIONS] <COMMAND>
|
||||||
dot-v1.1.5-->随机密码生成器
|
|
||||||
dot-v1.1.5-->Json实用工具
|
OPTIONS:
|
||||||
dot-v1.1.5-->Ip实用工具
|
-h, --help Prints help information
|
||||||
dot-v1.1.5-->GUID生成器
|
-v, --version Prints version information
|
||||||
dot-v1.1.5-->Git命令批量执行器
|
|
||||||
dot-v1.1.5-->屏幕坐标和颜色选取工具
|
COMMANDS:
|
||||||
```
|
git Git批量操作工具
|
||||||
|
color 屏幕坐标颜色选取工具
|
||||||
|
guid GUID工具
|
||||||
|
ip IP工具
|
||||||
|
json Json工具
|
||||||
|
pwd <password length> <generate type> 随机密码生成器
|
||||||
|
rbom 移除文件的uf8 bom
|
||||||
|
trim 移除文件尾部换行和空格
|
||||||
|
text 文本编码工具
|
||||||
|
time 时间同步工具
|
||||||
|
tolf 转换换行符为LF
|
||||||
|
get <url> 多线程下载工具
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### 部分功能示例
|
||||||
|
|
||||||
|
- ##### Git批量管理
|
||||||
|
|
||||||
|
当你clone了大量的git仓库, 使用这条命令可以一次性拉取它们的最新代码:
|
||||||
|
|
||||||
|
```
|
||||||
|
dot git -a "pull" d:\repos
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
类似地,你可以批量对一堆git仓库执行任何git命令:
|
||||||
|
|
||||||
|
```
|
||||||
|
dot git -a "config --get http.proxy" d:\repos
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
- ##### 高精度时钟同步
|
||||||
|
支持多个NTP时钟服务器并行请求,同时除去网络通信时长以设置本机时钟与NTP标准时间精确同步:
|
||||||
|
```
|
||||||
|
dot time -k
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
- ##### 文本编解码
|
||||||
|
复制你需要查看各种编解码的文本在剪贴板中,然后输入如下命令,即可查看
|
||||||
|
```
|
||||||
|
dot text
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
|
- ##### 多线程下载工具
|
||||||
|
支持设置分块大小,线程数量,用以替代单线程的wget工具:
|
||||||
|
```
|
||||||
|
dot get https://github.com/nsnail/dot/releases/download/v1.1.1/dot-v1.1.1-win-x64.7z
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
|
- ##### 移除文件末尾空白
|
||||||
|
移除指定目录下所有文件尾部多余的空格和换行符:
|
||||||
|
```
|
||||||
|
dot trim d:\repos
|
||||||
|
```
|
||||||
|
|
||||||
|

|
BIN
doc/snapshots/20221212212417.png
Normal file
BIN
doc/snapshots/20221212212417.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 55 KiB |
BIN
doc/snapshots/20221212213957.png
Normal file
BIN
doc/snapshots/20221212213957.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
BIN
doc/snapshots/20221212214514.png
Normal file
BIN
doc/snapshots/20221212214514.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 21 KiB |
BIN
doc/snapshots/20221212214904.png
Normal file
BIN
doc/snapshots/20221212214904.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 31 KiB |
BIN
doc/snapshots/20221212215259.png
Normal file
BIN
doc/snapshots/20221212215259.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
BIN
doc/snapshots/20221212215853.png
Normal file
BIN
doc/snapshots/20221212215853.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
2
doc/snapshots/img-optimize.cmd
Normal file
2
doc/snapshots/img-optimize.cmd
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
for %%i in (*.png) do pngquant %%i --force --output %%i --skip-if-larger
|
||||||
|
for %%i in (*.jpg) do jpegtran -copy none -optimize -perfect %%i %%i
|
@ -1,3 +1,4 @@
|
|||||||
|
using System.Globalization;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using Dot;
|
using Dot;
|
||||||
using Dot.Git;
|
using Dot.Git;
|
||||||
@ -28,4 +29,6 @@ app.Configure(config => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
|
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
|
||||||
|
CultureInfo.CurrentCulture = CultureInfo.GetCultureInfo("en-US");
|
||||||
|
CultureInfo.CurrentUICulture = CultureInfo.GetCultureInfo("en-US");
|
||||||
return app.Run(args);
|
return app.Run(args);
|
Loading…
x
Reference in New Issue
Block a user