goracle

command module
v0.0.0-...-14bab5a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2021 License: MIT Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

goracle

A CLI app to watch a directory and doing something, powered by golang and fsnotify

Usage

Work is still on progress to make it a proper CLI (see To-Do section for more example), but overall the usage will be:

goracle [options] COMMAND ARGS

There are some options available:

Options:
  -d string
        Directory to watch, set to current working directory as default (default "/home/thomasoca/projects/goracle")
  -e string
        Event to notify, select between create, write, remove, rename, chmod (default "create")
  -n
        Set execution mode to non-blocking
  -p string
        File pattern to notify (default "*")

NOTE: Separate multiple ARGS by space

Usage example

Run a python program over a write event of .csv file

goracle -e write -d /home/users/folder -n -p *.csv python example.py input_argument

The event file name will always be passed to the last ARGS by default

To-do

  • Write more tests to cover most of the statements
  • Create the makefile for CLI installation
  • Re-thinking about the non-blocking option

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL