Documentation
¶
Overview ¶
Package errno carries the exit statuses ohmyssh reports to its caller.
The service layer signals failures with these rather than with the CLI framework's own exit errors. That keeps the service free of any dependency on urfave/cli, so its behaviour can be tested by calling it directly instead of driving the command line.
Index ¶
Constants ¶
View Source
const ( CodeOK = 0 CodeError = 1 // general failure: unknown host, nothing saved, session failed CodeUsage = 2 // the command line was wrong )
Process exit statuses.
A remote command's status is deliberately not one of these: it is passed through unchanged, so `ohmyssh exec host -- cmd` reports what cmd reported.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.