Scope of this project is to implement a simple
include feature (similar to #include <lib> of the C-precompiler or import <lib> of python), for generic text files. See below section Additional improvements too, on
A command based not on programming languages, but shell script, able to "insert" in specific lines of text files another needed text saved in external files, kept in separated files/folders, so improving critical values confidentiality or improving reusability of text, centralizing the changes in those separated files, that can be then reintegrated/expanded with the full text just before the use or at runtime.
As use case i.e., this could be used in pure
yaml files (not accompanied by any standard include feature) to separate from a text body some secret values or some code lines equally repeated in many text-bodies.
JSON or a
Markdown or any text or source code file.
Interest for this project is the need to improve text files management in Linux also with no language installed and when not allowed by the text-type standar syntax, making easier reusability of repeated groups of lines and/or reducing eventual exposure of specific values, centralizing the updates in separated files and folders.
Goal for this Hackweek
Main goal is to implement as Linux shell script a draft first verion of such feature and provide some examples.
Additional improvements while hacking
The full project has been renamed from "import in a text file..." to the current title, having been improved with DEFINE IFDEF ENDIF INCLUDE verbs preprocessing, in the cpp style, able to implement text changes based on expressions other than include external text files, now much more being a Generic Text Preprocessor.
INCLUDE works also with files from
Pls in Resources, see prepro folder and README documentation descriptions.
Code, documentation and tests, see in:
- branch [main]
This project is part of:
Hack Week 23
[comment]: # (Please use the project descriptio...
Join the Gitter channel! [https://gitter.im/uy...
Implement a checksum ...
Avahi Integration and Network Connection
Lesser on the coding s...
The Linux Test Projec...