Scroll to navigation

TREEIFY(1) User Commands TREEIFY(1)

NAME

treeify - manual page for treeify 2.3.6

DESCRIPTION

usage: treeify [-h] [-o OUTPUT] [-r PATTERN] [-d DELIMITER] [-s SPLIT] [-F]

[-A] [--filler FILLER] [input]

Identify a column of text that contains hierarchical id and treeify that column. This script will inspect a text file and attempt to find a vertically left-aligned column of text that contains identifiers with multiple components, such as "Assets:US:Bank:Checking", and replace those by a treelike structure rendered in ASCII, inserting new empty lines where necessary to create the tree. Note: If your paths have spaces in them, this will not work. Space is used as a delimiter to detect the end of a column. You can customize the delimiter with an option.

positional arguments:

Name of the file to process (default: stdin)

options:

show this help message and exit
Name of the file to write (default: stdout)
Pattern for repeatable components (default: "(Assets|L iabilities|Equity|Income|Expenses)(:[A-Z][A-Za-z0-9- _']*)*")
Delimiter pattern to detect the end of a column text. If your pattens contain strings, you may want to set this to a longer string, like ' {2,}' (default: "[ ]+")
Pattern splitting into components (default: ":")
Use pattern and split suitable for filenames
Use pattern and split suitable for loose account names
Filler string for new lines inserted for formatting
December 2023 treeify 2.3.6