air
air copied to clipboard
Include dir
Would it be possible to add include_dir which would be used instead of exclude_dir. We have a monolithic repository and it would be easiest to have it watch the root and only include directories the project needs. Thanks!
OK, I’ll implement it:)
Great, thanks!
@spiffyjr Done, could you try the latest version?
I tried it out but adding root = "../"
seems to not watch anything and I was able to get include_dir
to work with it.
Suppose the repo's directory:
repo
|-- A
|-- A1
|-- A2
|-- B
|-- B1
|-- B2
If you want to watch A
, the air config should like this:
root = "."
include_dir = ["A"]
...
and running air
in the root directory of repo should work.
Yeah, but if I want the root to be A1
(where I run air) and to watch A
it doesn't seem to work?
root = "../../"
include_dir = ["A"]
...
@spiffyjr seems wired and not work...
I'm not sure what you mean @cosmtrek ?
See https://github.com/cosmtrek/air/pull/43. This does what I need but I'm not sure it conflicts with anything else.
#43 didn't quite do what I needed in all circumstances but #44 should do the trick.
So is this working? I tried to watch submodule but it did not work.
This was working when I submitted the pull request, but no longer merges with the latest master. I'd still like to see this added because the latest master no longer works with my monolithic project structure.