Skip to main content

Utility to automate annoying save-and-run routines in terminal environment

Project description

Reflexec

Reflexec is a utility to automate annoying save-and-run routines in terminal environment. Reflexec watches file system and triggers command execution on specified file event (e.g. file change).

Features

  • Watch file system events (e.g. file change) using shell patterns.
  • Execute command on file system event.
  • Display summary of command execution (time spent, exit code).
  • Support for different outputs (including standard logging, terminal output, terminal titlebar and system notification).
  • Quick configuration with command line arguments.
  • Advanced configuration using config file.
  • Config file generation from command line.

Activity diagram

.------------------------------------------------------------.
:                                                            :
:                  O                                         :
:                  |                                         :
:          .--------------.                                  :
:          |Parse CLI args|                                  :
:          ˋ--------------ˊ                                  :
:                  |                                         :
:          .---------------.                                 :
:          |(Re)load config| <--------------------.          :
:          ˋ---------------ˊ                      |          :
:                  |                              |          :
:          .---------------.                      |          :
:          |Execute command|                      |          :
:          ˋ---------------ˊ                      |          :
:                  |                              |          :
:          .--------------.                       |          :
:          |Report results|                       |          :
:          ˋ--------------ˊ                       |          :
:                  |                              |          :
:           .-------------.                       |          :
:           |Reload config|                       |          :
:           ˋ-------------ˊ                       |          :
:                  |                              |          :
:          .----------------.                     |          :
:          |Watch filesystem|                     |          :
:          ˋ----------------ˊ                     |          :
:                  |         Filesystem event /   |          :
:          .--------------.  SIGQUIT              |          :
:          |Register event| >---------------------ˊ          :
:          ˋ--------------ˊ                                  :
:                  |                                         :
:                  | Keyboargd interrupt ^C                  :
:                  |                                         :
:                  V                                         :
:                  O                                         :
:                                                            :
`------------------------------------------------------------'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

reflexec-0.2.0.tar.gz (22.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page