1.0.9 ⢠Published 8 months ago
@giftmk/nest_cli v1.0.9
š NestCLI - The Ultimate Codebase Explorer
NestCLI is a powerful and intuitive command-line tool that streamlines code exploration and navigation. With features like syntax highlighting, interactive search, tree visualization, and keyboard navigation, it significantly enhances your workflow, making it effortless to navigate complex projects.
⨠Features
- š Directory Tree Visualization ā Navigate projects with an intuitive tree view
- š Advanced File Search ā Search file content using regex support
- šØ Syntax Highlighting ā Enhanced readability for various programming languages
- āØļø Interactive Keyboard Navigation ā Seamlessly browse files
- š Pagination for Large Files ā View content efficiently
- āļø Customizable Configuration ā Save preferred settings for future use
- šÆ File Filtering ā Search by extension or name
- š¢ Line Numbering ā Improve readability and referencing
š ļø Installation
You can install NestCLI globally using either npm or Yarn.
Using npm:
npm install -g @giftmk/nest_cli
Using Yarn:
yarn global add @giftmk/nest_cli
š® Usage
Run the following command to explore a directory:
nest_cli [options] [directory]
š§ Options
Flag | Description | Default |
---|---|---|
-d, --depth <level> | Limit directory tree depth | Infinite |
-e, --extensions <ext> | Filter files by extensions (comma-separated) | All |
-l, --line-numbers | Show line numbers in file content | false |
-s, --size | Display file sizes in tree view | false |
--hidden | Include hidden files and directories | false |
-t, --tree-only | Show only the directory structure | false |
-f, --file-only | Show only file contents (hide tree) | false |
-L, --line-limit <num> | Set number of lines to display per page | 200 |
-S, --search <term> | Search for files by name (case-insensitive) | none |
-r, --regex | Enable regex-based search | false |
--syntax-highlight | Enable syntax highlighting | false |
-k, --keyboard-nav | Enable interactive navigation | false |
--save-config | Save current options as default | - |
--reset-config | Reset to default configuration | - |
š Examples
š Display Directory Structure
nest_cli -t
Output:
š Project Tree:
āāā src/
ā āāā core/
ā ā āāā FileNavigator.js
ā ā āāā ConfigManager.js
ā āāā plugins/
ā āāā TreePlugin.js
ā āāā SearchPlugin.js
āāā package.json
āāā README.md
š Search for Files with Syntax Highlighting
nest_cli . -S "plugin" --syntax-highlight
Output:
š Found in src/plugins/TreePlugin.js:
export class TreePlugin extends BasePlugin {
// Syntax-highlighted code...
}
āØļø Enable Interactive Navigation
nest_cli . -k
Navigation Controls:
n
ā Next filep
ā Previous filem
ā Mark/unmark fileq
ā Quit
āļø Configuration
ā Save Custom Settings
nest_cli --depth 3 --line-numbers --syntax-highlight --save-config
š Reset to Defaults
nest_cli --reset-config
š¤ Contributing
We welcome contributions! Follow these steps to get started:
- š“ Fork the repository
- š± Create a feature branch (
git checkout -b feature/AmazingFeature
) - š¾ Commit your changes (
git commit -m 'Add AmazingFeature'
) - š¤ Push to the branch (
git push origin feature/AmazingFeature
) - šÆ Open a Pull Request
Useful Links:
š License
NestCLI is licensed under the MIT License. See the LICENSE file for details.
š Need Help?
If you have any questions or need support:
- š Check the documentation
- š Search existing issues
- š¬ Open a new issue
š Built with passion by Gift Mkyelu (a.k.a The Code Maestro) š»š„