Skip to content

Commit

Permalink
feat(style): 格式化文件
Browse files Browse the repository at this point in the history
  • Loading branch information
abgox committed Nov 14, 2024
1 parent dd687a5 commit 0ae588d
Show file tree
Hide file tree
Showing 194 changed files with 7,749 additions and 2,277 deletions.
4 changes: 4 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "https://abgox.github.io/schema/prettier/zh-CN/prettierrc-min.json",
"printWidth": 0
}
5 changes: 4 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"recommendations": ["esbenp.prettier-vscode", "ms-vscode.powershell"]
"recommendations": [
"esbenp.prettier-vscode",
"ms-vscode.powershell"
]
}
18 changes: 7 additions & 11 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,19 @@
"json.schemas": [
{
"url": "https://abgox.github.io/schema/PSCompletions/zh-CN/config-min.json",
"fileMatch": ["completions/**/config.json"]
"fileMatch": [
"completions/**/config.json"
]
},
{
"url": "https://abgox.github.io/schema/PSCompletions/zh-CN/completion-min.json",
"fileMatch": ["completions/**/language/*.json"]
"fileMatch": [
"completions/**/language/*.json"
]
}
],
"editor.formatOnSave": true,
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[markdown]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"files.eol": "\r\n",
"[powershell]": {
"editor.defaultFormatter": "ms-vscode.powershell",
Expand Down
5 changes: 4 additions & 1 deletion completions/7z/config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"language": ["en-US", "zh-CN"]
"language": [
"en-US",
"zh-CN"
]
}
48 changes: 38 additions & 10 deletions completions/7z/language/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
"root": [
{
"name": "a",
"tip": ["Add files to archive\n", "E: a demo.zip demo\\"]
"tip": [
"Add files to archive\n",
"E: a demo.zip demo\\"
]
},
{
"name": "b",
Expand Down Expand Up @@ -45,20 +48,27 @@
},
{
"name": "x",
"tip": ["extract files with full paths\n", "E: x D:\\demo.7z -oD:\\demo"]
"tip": [
"extract files with full paths\n",
"E: x D:\\demo.7z -oD:\\demo"
]
}
],
"options": [
{
"name": "--version",
"alias": ["-v"],
"alias": [
"-v"
],
"tip": "Show the version."
}
],
"common_options": [
{
"name": "--help",
"alias": ["-h"],
"alias": [
"-h"
],
"tip": "Show help."
},
{
Expand Down Expand Up @@ -97,7 +107,10 @@
},
{
"name": "-bb",
"tip": ["U: -bb[0|1|2|3]\n", "set output log level"]
"tip": [
"U: -bb[0|1|2|3]\n",
"set output log level"
]
},
{
"name": "-bd",
Expand All @@ -116,7 +129,10 @@
},
{
"name": "-i",
"tip": ["Include filenames\n", "E: -i!*.txt --- Include all txt files"]
"tip": [
"Include filenames\n",
"E: -i!*.txt --- Include all txt files"
]
},
{
"name": "-m",
Expand All @@ -132,11 +148,17 @@
},
{
"name": "-o",
"tip": ["set Output directory\n", "U: -oD:\\demo\n"]
"tip": [
"set Output directory\n",
"U: -oD:\\demo\n"
]
},
{
"name": "-p",
"tip": ["set Password\n", "E: -p123456 --- Set password to 123456"]
"tip": [
"set Password\n",
"E: -p123456 --- Set password to 123456"
]
},
{
"name": "-r",
Expand All @@ -148,7 +170,10 @@
},
{
"name": "-sa",
"tip": ["U: -sa[a|e|s]\n", "set Archive name mode"]
"tip": [
"U: -sa[a|e|s]\n",
"set Archive name mode"
]
},
{
"name": "-scc",
Expand Down Expand Up @@ -276,7 +301,10 @@
},
{
"name": "-x",
"tip": ["exclude filenames\n", "E: -x!*.txt --- Exclude all txt files"]
"tip": [
"exclude filenames\n",
"E: -x!*.txt --- Exclude all txt files"
]
},
{
"name": "-y",
Expand Down
53 changes: 42 additions & 11 deletions completions/7z/language/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,18 @@
"options": [
{
"name": "--version",
"alias": ["-v"],
"alias": [
"-v"
],
"tip": "显示当前版本"
}
],
"common_options": [
{
"name": "--help",
"alias": ["-h"],
"alias": [
"-h"
],
"tip": "显示帮助信息"
},
{
Expand Down Expand Up @@ -107,23 +111,32 @@
},
{
"name": "-bb",
"tip": ["U: -bb[0|1|2|3]\n", "设置输出日志级别"]
"tip": [
"U: -bb[0|1|2|3]\n",
"设置输出日志级别"
]
},
{
"name": "-bd",
"tip": "禁用进度指示器"
},
{
"name": "-bs",
"tip": ["U: -bs[o|e|p]\n", "设置 output/error/progress 输出流"]
"tip": [
"U: -bs[o|e|p]\n",
"设置 output/error/progress 输出流"
]
},
{
"name": "-bt",
"tip": "显示执行时间统计信息"
},
{
"name": "-i",
"tip": ["包含文件名\n", "E: -i!*.txt --- 包含所有扩展名为txt的文件"]
"tip": [
"包含文件名\n",
"E: -i!*.txt --- 包含所有扩展名为txt的文件"
]
},
{
"name": "-m",
Expand All @@ -139,11 +152,17 @@
},
{
"name": "-o",
"tip": ["设置输出目录\n", "U: -oD:\\demo\n"]
"tip": [
"设置输出目录\n",
"U: -oD:\\demo\n"
]
},
{
"name": "-p",
"tip": ["设置密码\n", "E: -p123456 --- 设置密码为 123456"]
"tip": [
"设置密码\n",
"E: -p123456 --- 设置密码为 123456"
]
},
{
"name": "-r",
Expand All @@ -155,11 +174,17 @@
},
{
"name": "-sa",
"tip": ["U: -sa[a|e|s]\n", "设置归档名称模式"]
"tip": [
"U: -sa[a|e|s]\n",
"设置归档名称模式"
]
},
{
"name": "-scc",
"tip": ["U: -scc[UTF-8|WIN|DOS]\n", "设置控制台输入/输出字符集"]
"tip": [
"U: -scc[UTF-8|WIN|DOS]\n",
"设置控制台输入/输出字符集"
]
},
{
"name": "-scs",
Expand Down Expand Up @@ -270,11 +295,17 @@
},
{
"name": "-w",
"tip": ["分配工作目录\n", "E: -wD:\\temp --- 设置工作目录为 D:\\temp"]
"tip": [
"分配工作目录\n",
"E: -wD:\\temp --- 设置工作目录为 D:\\temp"
]
},
{
"name": "-x",
"tip": ["排除文件名\n", "E: -x!*.txt --- 排除所有扩展名为txt的文件"]
"tip": [
"排除文件名\n",
"E: -x!*.txt --- 排除所有扩展名为txt的文件"
]
},
{
"name": "-y",
Expand Down
5 changes: 4 additions & 1 deletion completions/arch/config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"language": ["en-US", "zh-CN"]
"language": [
"en-US",
"zh-CN"
]
}
8 changes: 6 additions & 2 deletions completions/arch/language/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,18 @@
"options": [
{
"name": "--version",
"alias": ["-V"],
"alias": [
"-V"
],
"tip": "Show the version."
}
],
"common_options": [
{
"name": "--help",
"alias": ["-h"],
"alias": [
"-h"
],
"tip": "Show help."
}
],
Expand Down
8 changes: 6 additions & 2 deletions completions/arch/language/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,18 @@
"options": [
{
"name": "--version",
"alias": ["-V"],
"alias": [
"-V"
],
"tip": "显示版本信息"
}
],
"common_options": [
{
"name": "--help",
"alias": ["-h"],
"alias": [
"-h"
],
"tip": "显示帮助信息"
}
],
Expand Down
4 changes: 3 additions & 1 deletion completions/b2sum/config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{
"language": ["en-US"]
"language": [
"en-US"
]
}
Loading

0 comments on commit 0ae588d

Please sign in to comment.