2024.12.11 โ€ข Published 7 months ago

project-tagger v2024.12.11

Weekly downloads
-
License
GPL-3.0-or-later
Repository
github
Last release
7 months ago

Project Tagger ๐Ÿš€

A lightweight CLI tool that simplifies project organization through a tag-based system. Create and manage project tags to efficiently categorize your projects.

How It Works ๐Ÿ”

Project Tagger creates .project.tag files in a hidden .tags directory within your project root. These .project.tag files act as searchable markers, making it easier to find and filter projects across your filesystem using tools like fzf or Everything.

Example

If you add react.project.tag to a React project, you can later search for react.project.tag to quickly locate all your React projects.


Installation ๐Ÿ“ฆ

NPM Global Installation

npm install -g project-tagger

Direct Usage with npx

npx project-tagger

Usage ๐Ÿš€

  1. Navigate to Your Project Root:

    cd /path/to/your/project
  2. Run Project Tagger:

    project-tagger

CLI Menu Options

  • โœจ Add Tag
    Add custom tags to your project. Spaces in tag names are replaced with underscores.

  • ๐Ÿ“‹ List Tags
    View all existing tags in the .tags directory.

  • โŒ Remove Tag
    Select specific tags to remove.

  • ๐Ÿงน Clear All Tags
    Remove all tags from the current project at once.

  • ๐Ÿ” Detect Project Type and Suggest Tags
    Automatically detect common project structures (e.g., package.json for JavaScript, tsconfig.json for TypeScript, requirements.txt for Python) and suggest relevant tags to add.

  • ๐Ÿšช Exit
    Quit the CLI.


Using the Source Code ๐Ÿ› ๏ธ

  1. Install Dependencies:

    bun install
  2. Run the Application:

    bun run index.ts
  3. Manage Tags (CLI Interface):

    • Add a Tag:
      Follow prompts to add custom tags.

    • List Tags:
      View all tags in .tags.

    • Remove a Tag:
      Select tags to remove.

    • Clear All Tags:
      Remove all tags at once.

    • Detect Project Type and Suggest Tags:
      Let the CLI suggest tags based on detected project files.


Compilation

To compile the project manually, run:

bun build ./index.ts --compile --outfile ./dist/project-tagger

Alternatively, use the scripts defined in package.json:

  • Build for Current OS:

    bun run build
  • Build for Windows:

    bun run build:windows
  • Build for Linux:

    bun run build:linux
  • Build for macOS:

    bun run build:mac

Feel free to open an issue if you have any questions or suggestions!

2024.12.11

7 months ago

2024.12.9

7 months ago

2024.12.0-8.2

7 months ago

2024.12.0-8.1

7 months ago

2024.12.8

7 months ago

2024.12.7

7 months ago