Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Check ¶
func Check(watchmanPath string)
Checks that watchman exists in the system. If not error out and shut down. Otherwise, continue execution.
func GetSockName ¶
Get socket filename using exec "watchman get-sockname". Passes stderr and stdout to the console. If it fails, then program shuts down. Otherwise, returns sockname.
func Subscribe ¶
Subscribes to watchman's messages about a directory's filesystem changes, using an appropriate Unix Socket to watchman. Can take in the directory and a subscription name to configure the subscription.
func WatchProject ¶
Watches a project directory and all it's subdirectories. Currectly, this function is deprecated in favor of Subscribe, until further notice.
Types ¶
type WatchmanSockName ¶
Struct to convert data from watchman get-sockname.