1.0.6 • Published 4 months ago
add-gl-quotes-to-tsv-files v1.0.6
node-cli-add-gl-quotes-to-tsv-files
CLI tool to add GL quotes to TSV files in a directory. Processes TSV files by adding Gateway Language quotes and occurrence columns, then packages the modified files into a zip archive.
Install
npm install --global add-gl-quotes-to-tsv-files
Usage
add-gl-quotes-to-tsv-files [options]
Options
--help, -h Show help
--version, -v Show version number
--workingdir, -w Directory where the TSV files are located (default: current directory)
--owner Repository owner (default: From git remote URL or unfoldingWord)
--repo Repository name (default: From git remote URL current directory's name)
--ref Git reference (git branch or tag or master)
--bible Bible link for GL Quotes (default: 1st aligned Bible in manfiest.yaml file relations or {owner}/en_ult/master)
--dcs DCS URL (defaut: https://git.door43.org)
--output, -o Output zip file's path (default: ./{repo}_{ref}_with_gl_quotes.zip)
--quiet, -q Suppress all output (default: false)
Parameter Resolution Priority
- Command line arguments
- GitHub Actions environment variables
- Git repository information
Output
Zip Filename
If no output filename is specified for the zip file, it will be generated as:
./<repo>_<ref>_with_gl_quotes.zip
Zip File's Contents
The generated zip file will contain:
- Modified TSV files with added GL Quote and GL Occurrence columns
- README.md (if present)
- LICENSE.md (if present)
- manifest.yaml
Development
- Clone this repository
git clone https://github.com/your-username/node-cli-add-gl-quotes-to-tsv-files.git
cd node-cli-add-gl-quotes-to-tsv-files
- Install dependencies
npm install
- Link the package
npm link
Now you can run add-gl-quotes-to-tsv-files
from anywhere to test your changes.
License
MIT