Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

doc-cli

A command-line tool that monitors package manager operations and dependency file changes across your development environment.

Features

  • Real-time monitoring of package manager commands (npm, pip, go get)
  • File watching for common dependency files:
    • package.json (Node.js)
    • requirements.txt (Python)
    • Support for lock files (package-lock.json, yarn.lock, pnpm-lock.yaml)
  • Automatic shell integration for zsh and bash
  • Detection of new package installations and updates
  • Cross-platform support

Installation

# Clone the repository
git clone https://github.com/yourusername/doc-cli
cd doc-cli

# Build the project
go build -o doc-cli cmd/main.go

Usage

Simply run the CLI tool:

./doc-cli

The tool will automatically:

  1. Install necessary shell hooks in your .zshrc or .bashrc
  2. Start monitoring package manager commands
  3. Watch for changes in dependency files in your current directory and subdirectories

How It Works

  • Shell hooks capture package manager commands in real-time
  • File watchers monitor changes to dependency files
  • The tool detects both new package installations and version updates
  • All events are logged for tracking dependency changes

Requirements

  • Go 1.x or higher
  • zsh or bash shell
  • File system permissions for creating FIFOs in /tmp

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT License

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages