(address-type ip-address)
Takes an IP address and returns a keyword in #{:ipv4 :ipv6} indicating the type of the address, or nil if the type could not be determined
Takes an IP address and returns a keyword in #{:ipv4 :ipv6} indicating the type of the address, or nil if the type could not be determined
(address-type->localhost-address address-type)
Given an address type, returns the localhost address.
Given an address type, returns the localhost address.
The prefix used in Ambly Bonjour service names.
The prefix used in Ambly Bonjour service names.
(bonjour-name->display-name bonjour-name)
Converts an Ambly Bonjour service name to a display name (stripping off ambly-bonjour-name-prefix).
Converts an Ambly Bonjour service name to a display name (stripping off ambly-bonjour-name-prefix).
(create-http-url address port)
Takes an address and port and forms a URL.
Takes an address and port and forms a URL.
(discover-and-choose-device choose-first-discovered? opts)
Looks for Ambly WebDAV devices advertised via Bonjour and presents a simple command-line UI letting user pick one, unless choose-first-discovered? is set to true in which case the UI is bypassed
Looks for Ambly WebDAV devices advertised via Bonjour and presents a simple command-line UI letting user pick one, unless choose-first-discovered? is set to true in which case the UI is bypassed
(extract-drive-letter output)
Takes the output from net use ...
command and extracts
the assigned drive letter.
Takes the output from `net use ...` command and extracts the assigned drive letter.
(form-ambly-import-script-expr-js path-expr)
Takes a JavaScript path expression and forms an AMBLY_IMPORT_SCRIPT
command.
Takes a JavaScript path expression and forms an `AMBLY_IMPORT_SCRIPT` command.
(form-ambly-import-script-path-js path)
Takes a path and forms a JavaScript AMBLY_IMPORT_SCRIPT
command.
Takes a path and forms a JavaScript `AMBLY_IMPORT_SCRIPT` command.
(getOs)
Returns a keyword that represents the OS.
Returns a keyword that represents the OS.
(jsc-eval repl-env js)
Evaluate a JavaScript string in the JSC REPL process.
Evaluate a JavaScript string in the JSC REPL process.
(load-javascript repl-env provides url)
Load a Closure JavaScript file into the JSC REPL process.
Load a Closure JavaScript file into the JSC REPL process.
(local? ip-address)
Takes an IP address and returns a truthy value iff the address is local to the machine running this code.
Takes an IP address and returns a truthy value iff the address is local to the machine running this code.
Mounts WebDAV, returning the filesystem mount point, otherwise throwing upon failure.
Mounts WebDAV, returning the filesystem mount point, otherwise throwing upon failure.
(raw-stacktrace->canonical-stacktrace raw-stacktrace opts)
Parse a raw JSC stack representation, parsing it into stack frames. The canonical stacktrace must be a vector of maps of the form {:file <string> :function <string> :line <integer> :column <integer>}.
Parse a raw JSC stack representation, parsing it into stack frames. The canonical stacktrace must be a vector of maps of the form {:file <string> :function <string> :line <integer> :column <integer>}.
(repl-env & {:as options})
Ambly REPL environment.
Ambly REPL environment.
(setup-mdns reg-type name-endpoint-map)
Sets up mDNS to populate atom supplied in name-endpoint-map with discoveries. Returns a function that will tear down mDNS.
Sets up mDNS to populate atom supplied in name-endpoint-map with discoveries. Returns a function that will tear down mDNS.
(sh timeout timeout-return-value return-output? & args)
Executes a shell process. Allows up to timeout to complete, returning process exit code or process output. Otherwise forcibly terminates process and returns timeout-return-value.
Executes a shell process. Allows up to timeout to complete, returning process exit code or process output. Otherwise forcibly terminates process and returns timeout-return-value.
(source-uri->relative-path source-uri)
Takes a source URI and returns a relative path value suitable for inclusion in a canonical stack frame.
Takes a source URI and returns a relative path value suitable for inclusion in a canonical stack frame.
(stack-line->canonical-frame stack-line)
Parses a stack line into a frame representation, returning nil if parse failed.
Parses a stack line into a frame representation, returning nil if parse failed.
(stacktrace->display-string stacktrace mapped-stacktrace output-dir)
Takes a stacktrace and forms a display string, consulting a mapped stacktrace and the output directory
Takes a stacktrace and forms a display string, consulting a mapped stacktrace and the output directory
(start-reading-messages repl-env opts)
Starts a thread reading inbound messages.
Starts a thread reading inbound messages.
Unmounts WebDAV, returning true upon success.
Unmounts WebDAV, returning true upon success.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close