eai/execute-announce-or-interrupt

BASH Tool which takes some function with argument to run.

Announces what function will be RAN (echo to console in color, with additional metadata like $PWD and $BASHPID/$$),

Runs the function.

Check return code of function:

  • IF 0: everything is good.
  • IF not-0: interrupts the current process.

Backlinks