mirror of
https://github.com/jtesta/ssh-audit.git
synced 2026-05-25 07:21:23 +02:00
Compare commits
2 Commits
d7fff591fa
...
99c64787d9
| Author | SHA1 | Date | |
|---|---|---|---|
| 99c64787d9 | |||
| 3fa62c3ac5 |
@@ -111,18 +111,9 @@ echo "Processing man page at ${MAN_PAGE} and placing output into ${GLOBALS_PY}..
|
|||||||
# * 'MAN_KEEP_FORMATTING' preserves the backspace-overwrite sequence when
|
# * 'MAN_KEEP_FORMATTING' preserves the backspace-overwrite sequence when
|
||||||
# redirected to a file or a pipe.
|
# redirected to a file or a pipe.
|
||||||
# * sed converts unicode hyphens into an ASCI equivalent.
|
# * sed converts unicode hyphens into an ASCI equivalent.
|
||||||
# * The 'ul' command converts the backspace-overwrite sequence to an ANSI
|
|
||||||
# escape sequence. Not required under Cygwin because man outputs ANSI escape
|
|
||||||
# codes automatically.
|
|
||||||
|
|
||||||
echo BUILTIN_MAN_PAGE = '"""' >> "${GLOBALS_PY}"
|
echo BUILTIN_MAN_PAGE = '"""' >> "${GLOBALS_PY}"
|
||||||
|
|
||||||
if [[ "${PLATFORM}" == CYGWIN* ]]; then
|
|
||||||
MANWIDTH=80 MAN_KEEP_FORMATTING=1 man "${MAN_PAGE}" | sed $'s/\u2010/-/g' >> "${GLOBALS_PY}"
|
MANWIDTH=80 MAN_KEEP_FORMATTING=1 man "${MAN_PAGE}" | sed $'s/\u2010/-/g' >> "${GLOBALS_PY}"
|
||||||
else
|
|
||||||
MANWIDTH=80 MAN_KEEP_FORMATTING=1 man "${MAN_PAGE}" | ul | sed $'s/\u2010/-/g' >> "${GLOBALS_PY}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo '"""' >> "${GLOBALS_PY}"
|
echo '"""' >> "${GLOBALS_PY}"
|
||||||
|
|
||||||
echo "Done."
|
echo "Done."
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ def usage(uout: OutputBuffer, err: Optional[str] = None) -> None:
|
|||||||
uout.info(' to view policy change logs.')
|
uout.info(' to view policy change logs.')
|
||||||
uout.info(' --lookup=<alg1,alg2,...> looks up an algorithm(s) without\n connecting to a server')
|
uout.info(' --lookup=<alg1,alg2,...> looks up an algorithm(s) without\n connecting to a server')
|
||||||
uout.info(' -M, --make-policy=<policy.txt> creates a policy based on the target server\n (i.e.: the target server has the ideal\n configuration that other servers should\n adhere to)')
|
uout.info(' -M, --make-policy=<policy.txt> creates a policy based on the target server\n (i.e.: the target server has the ideal\n configuration that other servers should\n adhere to)')
|
||||||
uout.info(' -m, --manual print the man page (Windows only)')
|
uout.info(' -m, --manual print the man page (Docker, PyPI, Snap, and Windows\n builds only)')
|
||||||
uout.info(' -n, --no-colors disable colors (automatic when the NO_COLOR')
|
uout.info(' -n, --no-colors disable colors (automatic when the NO_COLOR')
|
||||||
uout.info(' environment variable is set)')
|
uout.info(' environment variable is set)')
|
||||||
uout.info(' -p, --port=<port> port to connect')
|
uout.info(' -p, --port=<port> port to connect')
|
||||||
|
|||||||
Reference in New Issue
Block a user