Coder Social home page Coder Social logo

crow's Introduction

Crow

crow is a simple command-line utility that lets you run arbitrary commands when certain files change.

Crow Banner

Demo

A demonstration of crow being used to re-execute tests every time a file is saved. Also, see other use cases.

Crow Demo

Installation

Install with go get

go get github.com/maaslalani/crow

Install from source

Clone this repository and cd into it.

git clone [email protected]:maaslalani/crow.git && cd crow

Install crow with go install.

go install

Ensure ~/go/bin is in your PATH.

Usage

crow [--watch path] [--ext extensions] command

or pipe in a list of filenames to watch from stdin from fd, find, ls, echo, etc...

filenames | crow command

Use cases

Use crow to run tests once you save main.go.

crow -w main.go go test ./...
echo main.go | crow go test ./...

Automatically restart your server on changes (watches all files in the current directory).

crow go run main.go

Live preview markdown in your terminal with glow.

crow -w README.md glow README.md
fd .md | crow glow README.md

Use crow with !! to watch files and run the last command.

crow !!

Alternatives

Contributing

Pull requests are welcome.

License

MIT

crow's People

Contributors

maaslalani avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.