dir-hunter
v1.0.8
Published
A simple directory command line tool to execute commands on directories
Downloads
4
Maintainers
Readme
Dir Hunter
使用其他语言阅读:English | 简体中文
Dir Hunter 是一个Node.js命令行工具,可以帮助你快速搜索目录并执行命令。
https://github.com/Developer27149/dir-hunter/assets/23721611/fc136878-9276-4502-9452-39d602af68b3
安装
使用 npm 安装 Dir Hunter:
npm install -g dir-hunter
使用
➜ dh git:(main) ✗ dh -h
____ _ _ _ _
| _ \(_)_ __ | | | |_ _ _ __ | |_ ___ _ __
| | | | | '__| | |_| | | | | '_ \| __/ _ \ '__|
| |_| | | | | _ | |_| | | | | || __/ |
|____/|_|_| |_| |_|\__,_|_| |_|\__\___|_|
Usage: directory-hunter [options] [keyword]
A simple CLI tool to search for directories and execute commands in your system
Arguments:
keyword Directory keyword to search for
Options:
-V, --version output the version number
-d, --depth <value> Search scope about the max depth of dir,default value
is 5
-g, --gitignore <value> Ignore directories listed in the .gitignore file
(default: true)
-w, --windows-powershell <value> Use windows powershell: cmd or powershell (default:
"powershell")
-s, --skip-hidden <value> Skip hidden directories (default: true)
-h, --help display help for command
功能
- 快速搜索目录并显示结果
- 选择目录并执行自定义命令
- 支持排除
.gitignore
指定的内容 - 可配置的选项
贡献
如果你发现任何问题或者有任何改进意见,欢迎提交PR。
许可
License
MIT License
Copyright (c) 2024 dir-hunter
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.