From 96142c8954b40b18734c4ba285b1d3ad9f31da21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Cola=C3=A7o?= Date: Fri, 7 Jun 2024 14:45:12 +0200 Subject: [PATCH] feat(help): More explicit help message Add information about command usage --- layouts/index.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index c6dd65e..0d0916a 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -22,7 +22,7 @@ {{ if .Site.Params.exitLocation }} 'exit', {{ end }} - ] + ]; var commandsDescription = [ 'whois\t list basic details\n', @@ -52,7 +52,7 @@ {{ if .Site.Params.exitLocation }} 'exit exit the terminal environment\n', {{ end }} - ] + ]; $('body').terminal(function(command, term) { @@ -262,9 +262,10 @@ ]; var help = '\n[[b;white;]usage:]\n' + - '\n less - use less to display the output\n\n' + - '\n[[b;white;]Available commands:]\n' + - '\n ' + commandsDescription.join(' ') + '\n'; + '\n - execute the command\n' + + ' less - use less to display the output\n\n' + + '\n[[b;white;]Available commands:]\n' + + '\n ' + commandsDescription.join(' ') + '\n'; var source = ' _______ \n' +