Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Disabled ¶
func Disabled() error
Disabled checks if iTerm2 is configured to accept connections from every client, or if a client should first request the cookie and key instead. If auth is for sure disabled it returns nil, otherwise it returns an error with a description of why auth appears enabled or it was not possible to complete detection. See https://iterm2.com/python-api-auth.html for documentation of iTerm2's API Security.
func MagicString ¶
MagicString returns the expected contents of the `disable-automation-auth` file. See https://iterm2.com/python-api-auth.html for documentation of iTerm2's API Security.
func RequestCookieAndKey ¶
RequestCookieAndKey requests the cookie and key to authenticate with iTerm2 via Applescript, potentially triggering iTerm2's or macOS confirmation dialogs. If activate is true, iTerm2 will be started automatically if it's currently not running. If iTerm2 is not running and and active is false, an error will be returned without attempting to request the cookie and key. See https://iterm2.com/python-api-auth.html for documentation of iTerm2's API Security.
Types ¶
This section is empty.