Skip to main content

Run a command with patched executables on the path

Project description

patch-path

Run a command with patched executables on the path

This is vibe coded but I am using it.

Alternatives and prior work

This is encouraged by patching frameworks like mock in python and the LD_PRELOAD environment variable.

You could patch your PATH directory and have it point at a directory containing patching programs

Usage

Patch fzf with a program that returns an empty string and log calls to fzf along with their input

patch-path --fzf  program

Patch fzf and have it return hello

patch-path --fzf=hello  program

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

patch_path-1.0.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

patch_path-1.0.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file patch_path-1.0.0.tar.gz.

File metadata

  • Download URL: patch_path-1.0.0.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for patch_path-1.0.0.tar.gz
Algorithm Hash digest
SHA256 de6cce0d723b317bdc5af4c51d213a2ba37c9318df18a0ec3b4bdc2c66654fb8
MD5 f5c8de1e138936f692bc0d12a8711c33
BLAKE2b-256 3a8d83d044ba0eafe3def3a9b7184b187ac1a33b45725c3d0843406ccdfb9fc6

See more details on using hashes here.

File details

Details for the file patch_path-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: patch_path-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for patch_path-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dc8494e79e254f54e9e57721963519fae116938cf0918f25a98b83334ffdb7da
MD5 a34ecf0949e13b625fe6a188433720f2
BLAKE2b-256 583b398aa379350dfb8a3728798af7c2c929723f91ad7b742c42ac1dbb95da00

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