From 2e7c52f3302cc7d2350f53e5b4f7f46f0183c355 Mon Sep 17 00:00:00 2001 From: Jason3S <3740137+Jason3S@users.noreply.github.com> Date: Sat, 9 Nov 2024 12:21:43 +0000 Subject: [PATCH] fix: Update Inject Markdown version (3.1.1) --- README.md | 23 ++++++++++++++++++++++- package-lock.json | 3 +++ static/help.txt | 22 ++++++++++++++++++++++ 3 files changed, 47 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 17c4515..0f6fe76 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,28 @@ npm install -g git+https://github.com/streetsidesoftware/inject-markdown-cli ``` - +Usage: inject-markdown [options] + +Inject file content into markdown files. + +Arguments: + files Files to scan for injected content. + +Options: + --no-must-find-files No error if files are not found. + --output-dir Output Directory + --cwd Current Directory + --clean Remove the injected content. + --verbose Verbose output. + --silent Only output errors. + --no-stop-on-errors Do not stop if an error occurs. + --write-on-error write the file even if an injection error occurs. + --color Force color. + --no-color Do not use color. + --no-summary Do not show the summary + --dry-run Process the files, but do not write. + -V, --version output the version number + -h, --help display help for command ``` diff --git a/package-lock.json b/package-lock.json index 4c05fbd..ed02862 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,6 +11,9 @@ "dependencies": { "inject-markdown": "^3.1.1" }, + "bin": { + "inject-markdown-cli": "index.js" + }, "devDependencies": { "prettier": "^3.3.3" }, diff --git a/static/help.txt b/static/help.txt index e69de29..0a9c9d4 100644 --- a/static/help.txt +++ b/static/help.txt @@ -0,0 +1,22 @@ +Usage: inject-markdown [options] + +Inject file content into markdown files. + +Arguments: + files Files to scan for injected content. + +Options: + --no-must-find-files No error if files are not found. + --output-dir Output Directory + --cwd Current Directory + --clean Remove the injected content. + --verbose Verbose output. + --silent Only output errors. + --no-stop-on-errors Do not stop if an error occurs. + --write-on-error write the file even if an injection error occurs. + --color Force color. + --no-color Do not use color. + --no-summary Do not show the summary + --dry-run Process the files, but do not write. + -V, --version output the version number + -h, --help display help for command