mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Finding small errors in `RunCMake` outputs against the output is a tedious task. Add a small tool that sets up a simple `tmux` window setup to help debug them.
22 lines
849 B
ReStructuredText
22 lines
849 B
ReStructuredText
Regular expression debugging tool
|
|
=================================
|
|
|
|
A tool to help diagnose issues with ``RunCMake`` regular expressions by
|
|
offering an editor with live results matching the haystack (``content.txt``)
|
|
against the needle (``re.txt``).
|
|
|
|
This utility makes a few assumptions, but further improvement for other
|
|
workflows is welcome. One assumption is that it is run from this directory
|
|
(i.e., ``./run.sh``).
|
|
|
|
Requirements
|
|
------------
|
|
|
|
The tool currently assumes it is running inside of a ``tmux`` session and
|
|
offers a split which prints the results of matching the regular expression
|
|
against the content.
|
|
|
|
The ``EDITOR`` environment variable is used to detect the preferred editor,
|
|
defaulting to ``nano``. If the editor is detected as a Vi-alike (i.e., has
|
|
``vi`` in its name), both files are automatically opened in separate windows.
|