Skip to content

Commit

Permalink
feat(help): More explicit help message
Browse files Browse the repository at this point in the history
Add information about command usage
  • Loading branch information
coolapso committed Jun 7, 2024
1 parent d6bb543 commit 96142c8
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
{{ if .Site.Params.exitLocation }}
'exit',
{{ end }}
]
];

var commandsDescription = [
'whois\t list basic details\n',
Expand Down Expand Up @@ -52,7 +52,7 @@
{{ if .Site.Params.exitLocation }}
'exit exit the terminal environment\n',
{{ end }}
]
];


$('body').terminal(function(command, term) {
Expand Down Expand Up @@ -262,9 +262,10 @@
];

var help = '\n[[b;white;]usage:]\n' +
'\n less <command> - use less to display the output\n\n' +
'\n[[b;white;]Available commands:]\n' +
'\n ' + commandsDescription.join(' ') + '\n';
'\n <command> - execute the command\n' +
' less <command> - use less to display the output\n\n' +
'\n[[b;white;]Available commands:]\n' +
'\n ' + commandsDescription.join(' ') + '\n';


var source = ' _______ \n' +
Expand Down

0 comments on commit 96142c8

Please sign in to comment.