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 details)

Uploaded Source

File details

Details for the file reflexec-0.2.0.tar.gz.

File metadata

  • Download URL: reflexec-0.2.0.tar.gz
  • Upload date:
  • Size: 22.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for reflexec-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8072407501f48e14912cd34c0ddb9e3dd7c88abb4d8223b15fd3e9ca49bd1eb4
MD5 62f8d363c7739866c2eee59aad836c9c
BLAKE2b-256 5016ab80e88b305cffd249c952d87745552bc48ba905fb09dbfbdf82a2bf6165

See more details on using hashes here.

Supported by

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