doc: add help about the interactive builtin commands (#227)

This commit is contained in:
Stéphane Lesimple 2021-09-15 13:42:19 +00:00 committed by Stéphane Lesimple
parent 99686499b1
commit db8f621abf

View file

@ -223,6 +223,18 @@ EOM
}
else {
system($0, '-c', "$realOptions --osh $line");
# in addition to the normal help, also advertise the interactive mode builtin commands:
if ($line eq 'help') {
osh_info("Under interactive mode, additional builtin commands are supported:\n"
. "- ssh [options] <server> Connect to remote server, note that all the standard options\n"
. " can be used (--port, etc.), refer to --long-help for a list.\n"
. "- mfa Request an immediate MFA validation to elevate the current session,\n"
. " to avoid getting a prompt for each JIT MFA-required command.\n"
. "- nomfa Go back non-MFA elevated session.\n"
. "- exit Quit the interactive mode, 'quit' and ^D can be used instead.\n");
}
}
}