r/linux • • 21d ago

Software Release pathaction - One Linux command to run, compile, lint, deploy, or debug any file or directory [Release 1.1.0]

https://github.com/jamescherti/pathaction

When jumping between different codebases and environments, it can be hard to remember the specific deployment method, build tools, linters, and test runners for each file or project.

The pathaction tool is a command-line tool for running commands on files and directories. Think of pathaction as the equivalent of your IDE's "Run" and "Debug" buttons, or a Makefile designed to work on individual files and directories.

Pass any file or directory as an argument, and pathaction executes the right command based on a .pathaction.yaml configuration:

  • Works on any file: source code, config files, media...

  • Supports Jinja2 in .pathaction.yaml so you can build dynamic commands using the target path's filename, extension, or directory.

  • Define multiple actions for the exact same file type. You can map the default action to execute a script, a debug tag to attach a debugger, and a lint tag to check formatting.

This tool is built for software developers or Linux administrators who manage multiple projects across diverse environments.

0 Upvotes

Duplicates