Skip to content

stillmatic/cappadocia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cappadocia

A simple filesystem watcher that runs a command when a file changes.

Motivating use case: I have a GraphQL schema that's defined in Python using strawberry. I want to automatically generate a GraphQL schema from this Python file whenever it changes, so that it can be used by a React frontend easily.

Some simple examples:

# simplest example
cappadocia watch "*.md" "echo" "hello world"
> Watching 1 files matching *.md
> hello world
> hello world

# also equivalent
cappadocia watch "*.md" echo hello world

# pass arguments to command via `--`
cappadocia watch schema.py strawberry -- export-schema schema --output ../packages/graphql/schema.gql

Installation:

go install github.com/stillmatic/cappadocia@latest

MIT License

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published