https://github.com/kscript/command-manager
超轻量级命令管理器,通过命令管理器页面, 或在json文件添加少量配置,即可在 网页 或 Windows资源管理器的任意位置, 即时运行各种命令,让你的项目开发更有条理和效率。
https://github.com/kscript/command-manager
cmd command-line git nodejs npm powershell powershell-script tool
Last synced: 27 days ago
JSON representation
超轻量级命令管理器,通过命令管理器页面, 或在json文件添加少量配置,即可在 网页 或 Windows资源管理器的任意位置, 即时运行各种命令,让你的项目开发更有条理和效率。
- Host: GitHub
- URL: https://github.com/kscript/command-manager
- Owner: kscript
- License: bsd-3-clause
- Created: 2023-08-07T03:47:34.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-11-11T19:53:12.000Z (about 1 year ago)
- Last Synced: 2025-01-14T21:00:14.240Z (about 1 year ago)
- Topics: cmd, command-line, git, nodejs, npm, powershell, powershell-script, tool
- Language: Vue
- Homepage: https://kscript.github.io/command-manager/
- Size: 4.12 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# command-manager
命令管理器,超轻量级的项目命令管理工具,只需在json文件添加少量的配置项,即可在 `Windows资源管理器` 文件区域任意位置即时运行各种命令,让你的项目开发更有 `条理`和 `效率`。
## 运行环境
- Windows系统
- PowerShell (必要)
- nodejs(非必要,用到时有nodejs即可,如果切换版本,则需要再另外配置nvm)
- git (非必要,用到时需在环境变量配置好git-bash.exe路径)
## 使用场景
当手上的项目多起来之后,
还记得你要运行的项目在什么目录吗?
还记得你是要运行 `npm run start`、`npm run dev`或者 `npm run serve`吗?
还记得它们的运行环境是什么样的,node12、node14、node16,git或者其它?
......
这么多琐碎的重复性工作,为什么不 `做或者找一个工具来管理它们`呢?
是的,这就是 `命令管理器`的使用场景,让你摆脱琐碎的重复性工作,在Windows资源管理内随时随地,快捷地运行你想要运行的项目。
## 使用方法
这里提供两种方式进行配置
- ### 使用脚本快速开始
> 执行脚本时, 会提示编辑注册表项, 是用来添加右键菜单的, 如果不希望添加右键菜单,可以选否
```
git clone https://github.com/kscript/command-manager.git
cd command-manager
npm run quickstart
```
- ### 按照步骤配置
点击查看详细步骤
1. clone当前项目

2. 在项目的shell目录下,找到 [install.cmd](./shell/install.cmd) 文件

3. 双击运行[install.cmd](./shell/install.cmd) 文件(用于注册右键菜单)

4. 注册成功后,在Windows资源管理器内点击鼠标右键,选择 `打开脚本管理器`菜单项

5. 选择要执行的脚本 (使用 `鼠标`或 `上下方向键`选择后按 `回车键`)

6. 在shell目录下,找到 [manifest.json](./shell/manifest.json) 文件,根据示例配置项,做相应修改

如果觉得不直观,可以在当前项目附带的[前端应用](https://kscript.github.io/command-manager/manager)中编辑
