repo-adapter-api:adapter-outputs
repo-adapter-api:adapter-outputs@0.0.0
AdapterCommandInvocation
AdapterCommandDescriptor
AdapterCommandExecution
| Field | Type | Req. | Default | Description |
|---|---|---|---|---|
adapter | string | Yes | The shell adapter that ran the command, by name: the shell the host is configured to run commands through | |
command | string | Yes | The command line the shell was given: the program and its arguments, quoted as that shell reads them | |
invocation | AdapterCommandInvocation | Yes | The process the host started to run it: the shell's executable and the arguments it was started with | |
exit | integer | Yes | The exit code the process ended with; 0 is success | |
stdout | string | Yes | What the command wrote to standard output, cut to its tail where it is longer than a response field holds. Empty where the output was streamed to the terminal as it ran and not captured. | |
stderr | string | Yes | What the command wrote to standard error, cut to its tail where it is longer than a response field holds. Empty where the output was streamed to the terminal as it ran and not captured. |
AdapterExecutionSummary
| Field | Type | Req. | Default | Description |
|---|---|---|---|---|
stdout | string | Yes | The standard output of every command that ran, in the order they ran, joined by newlines and cut to its tail where it is longer than a response field holds. Empty where the output was streamed and not captured. | |
stderr | string | Yes | The standard error of every command that ran, in the order they ran, joined by newlines and cut to its tail where it is longer than a response field holds. Empty where the output was streamed and not captured. | |
exit | integer | Yes | The exit code of the first command that failed, after which no later one is run, or 0 where every command passed or there was nothing to run | |
duration | integer | No | How long the run took, in whole milliseconds, where the command reporting it timed one: every repository it crossed into included, since a recursive run is one run. Absent where nothing timed it | |
commands | list[AdapterCommandDescriptor] | No | [] | Every command the adapter asked for, in the order it asked, whether or not the run reached it. Empty where there was nothing to run. |
AdapterResult
| Field | Type | Req. | Default | Description |
|---|---|---|---|---|
adapter | AdapterExecutionSummary | Yes | The run as a whole: the commands the adapter asked for, their combined output and the exit code the run ended with | |
adapter | list[AdapterCommandExecution] | No | [] | One record for each command that was started, in the order they ran, ending at the first that failed. Empty where no command ran, which is how a run that had nothing to do is told from one that did something. |
AdapterUnavailable
| Field | Type | Req. | Default | Description |
|---|---|---|---|---|
message | string | No | "Repo adapter command is unavailable for the selected modules/repo adapters." | Why nothing ran: which command no repo adapter of the selected modules implements |
PackagedFile
| Field | Type | Req. | Default | Description |
|---|---|---|---|---|
source | path | Yes | Where the file is on disk when the application is packaged | |
destination | string | Yes | The directory the application looks for the file in once it is running, written with forward slashes and counted from the directory the code reading it is imported from, which is not the repository root where packages sit under a directory of their own |
PathSource
PackagingInputs
| Field | Type | Req. | Default | Description |
|---|---|---|---|---|
modules | list[string] | No | [] | Modules the application loads by name at run time, which no import statement names |
packages | list[string] | No | [] | Packages whose every module, at any depth, is loaded by name at run time: discovered rather than imported |
files | list[PackagedFile] | No | [] | Files the application reads after it has started, and where it looks for each |
non | list[string] | No | [] | Packages that are not part of the application: nothing in or beneath one belongs in the artifact, whatever import or entry above reaches it |
obtained | list[path] | No | [] | Directories the application's obtained packages are imported from: code that is part of the application and was fetched into the tree rather than written or installed there, so nothing a packager already searches leads to it |
form | enum one of bundled, compiled | No | "bundled" | What the executable is to be, which says which packager makes it: bundled is the interpreter and the application's bytecode put together beside it, quick to make and readable back into source by anybody holding it, for a build that stays among the people holding the source already; compiled is the application translated to native code, slow to make and carrying no bytecode of its own, for a build that goes to somebody who is not to read it. The same artifact shape either way, so nothing that reads one tells them apart but this |
sign | command | No | A command that signs the binaries of a compiled executable before they are packed into it, run once with the directory they are laid out in appended as its last argument; a failure fails the build. What a packed executable unpacks on a machine is what it carried, so this is the one point an inner binary can be signed at, and the packed file is signed afterwards by whoever signs the artifact. Unset, nothing is signed; a bundled build runs no command |
VendoredRequirementsFile
AdapterOutput
One of the types AdapterResult, AdapterUnavailable.
Used by
The versions of each application and library holding this build.
| Held by | Versions |
|---|---|
| dev-tool | 0.0.0 |
| repo-adapter-api | 0.0.0 |