Skip to content

🔆 A simple directory command line tool to execute commands on directories

Notifications You must be signed in to change notification settings

AaronConlon/dir-hunter

Repository files navigation

Dir Hunter

node version npm version GitHub stars download count license license

使用其他语言阅读:English | 简体中文

Dir Hunter 是一个Node.js命令行工具,可以帮助你快速搜索目录并执行命令。

dir-hunter-v1.0.8.mp4

安装

使用 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指定的内容
  • 支持历史命令筛选
  • 在 macOS 和 windows 上测试通过
  • 可配置的选项

贡献

如果你发现任何问题或者有任何改进意见,欢迎提交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.

About

🔆 A simple directory command line tool to execute commands on directories

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published