From 19b2e2d1ac0fd8a88af6b0da3d00017e4ee31c06 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Sun, 1 Jun 2025 14:31:12 +0700 Subject: all: go embed the README and use it on the CLI for help command --- README | 91 ++++++++++++++++++++++++++++++------------------------ cmd/jarink/main.go | 77 +++++++-------------------------------------- jarink.go | 11 +++++++ 3 files changed, 72 insertions(+), 107 deletions(-) create mode 100644 jarink.go diff --git a/README b/README index ad20e53..a26722f 100644 --- a/README +++ b/README @@ -1,54 +1,63 @@ = Jarink -Jarink is a program to help web administrator to maintains their website. +Jarink is a program to help web administrator and developers to inspect +and maintains their website. == Synopsis - jarink [OPTIONS] + jarink [OPTIONS] Available commands, - brokenlinks - scan the website for broken links (page and images). + brokenlinks - scan the website for broken links (page and images). + help - print the usage of the command. == Usage [OPTIONS] brokenlinks URL - Start scanning for broken links on the web server pointed by URL. - Invalid links will be scanned on anchor href attribute - ("") or on the image src attribute ("") or + on the image src attribute (" -Available commands, - - brokenlinks - scan the website for broken links (page and images). - -== Usage - -[OPTIONS] brokenlinks URL - - Start scanning for broken links on the web server pointed by URL. - Invalid links will be scanned on anchor href attribute - ("") or on the image src attribute (" +// SPDX-License-Identifier: GPL-3.0-only + +package jarink + +import ( + _ "embed" +) + +//go:embed README +var GoEmbedReadme string -- cgit v1.3