qcli 2.0.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet tool install --global qcli --version 2.0.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local qcli --version 2.0.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=qcli&version=2.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package qcli --version 2.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Quick - NuGet Tool 快速启动器
一个跨平台快速启动工具,通过命令行快速打开文件夹、文件、URL 或执行系统命令。
安装
dotnet tool install -g Quick.Tool
安装后使用 q 命令:
q --help
使用方式
基本用法
q <target> # 使用默认方案打开
q <type> <target> # 使用指定方案打开
方案类型
| 类型 | 说明 | 示例 |
|---|---|---|
open |
打开文件夹/文件/快捷方式 | q open soft |
web |
打开 URL | q web github |
os |
执行系统命令 | q os notepad |
单参数命令
使用配置的默认方案(默认为 open):
q soft # 打开 D:/Software
q C:\Projects # 直接打开路径
q github # 若默认方案为 web,打开 GitHub
双参数命令
明确指定方案:
q open soft # 打开文件夹
q web github # 打开 URL
q web google.com # 打开网站
q os notepad # 执行系统命令
别名管理
路径快捷方式
q set work D:/Work # 设置快捷方式
q set proj D:/Projects # 设置快捷方式
q work # 使用快捷方式
Web 别名
q alias web gh=https://github.com # 设置 web 别名
q alias web g=https://google.com # 设置 web 别名
q web gh # 使用别名
删除配置
q del work # 删除快捷方式
q del web.gh # 删除 web 别名
查看配置
q list # 列出所有配置
q list shortcuts # 只列出快捷方式
q list aliases # 只列出别名
自身别名
设置工具的别名(如 go、quick):
q me go # 自动生成 shell 别名配置
支持:
- PowerShell (
$PROFILE) - CMD (批处理文件)
- Bash (
~/.bashrc)
配置
配置文件位置:%APPDATA%/Quick/config.json
配置示例
{
"defaultAction": "open",
"shortcuts": {
"soft": "D:/Software",
"work": "D:/Work",
"proj": "D:/Projects"
},
"extensions": {
"os": {
"enabled": true,
"aliases": {}
},
"web": {
"enabled": true,
"aliases": {
"gh": "https://github.com",
"g": "https://google.com"
}
}
}
}
配置说明
| 字段 | 类型 | 说明 |
|---|---|---|
| defaultAction | string | 默认方案: open、web、os |
| shortcuts | object | 快捷名称到路径的映射 |
| extensions | object | 扩展命令配置 |
| extensions.{type}.enabled | bool | 是否启用该类型 |
| extensions.{type}.aliases | object | 命令别名映射 |
日志
日志文件位置:%APPDATA%/Quick/logs/
quick-{date}.log- 执行日志usage_stats.json- 使用频率统计
开发
# 构建
dotnet build
# 运行测试
dotnet test
# 打包
dotnet pack -c Release
许可证
MIT License
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.