Type Definitions
Bookmark
- Source:
Properties:
Name | Type | Attributes | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
file |
string | Path within the project to the file |
||||||||||
line |
number | Line number (1-based) in file when bookmark was constructed |
||||||||||
text |
string | Text marked by bookmark |
||||||||||
children |
Array.<Bookmark> |
<optional> |
Child bookmarks |
|||||||||
peg |
object |
<optional> |
Persistent location identity within Git repository Properties
|
Type:
- Object
Casefile
- Source:
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
path |
string |
<nullable> |
|
bookmarks |
Array.<Bookmark> |
Type:
- Object
Change
Range of 1-based line numbers in both sides of a diff representing a change
- Source:
Properties:
Name | Type | Description |
---|---|---|
baseStart |
number | 1-based line number in base version to delete or before which to insert |
baseEnd |
number | 1-based line number of the first line not to delete; for pure insertion, this equals baseStart |
currentStart |
number | 1-based line number in current version to add or mark position of deletion |
currentEnd |
number | 1-based line number in current version marking the first line not to insert; for pure deletion, this equals currentStart |
Type:
- object
CommandRunnerFunc(kwargsopt) → {Promise.<*>}
- Source:
The resolved value can be the output of kwargs.exit, kwargs.makeResult,
or the value kwargs.result (in that order of precedence). If the child
process exits with a non-zero exit code and kwargs.exit is not given,
this Promise will reject with an error where err.code === 'ChildProcessFailure'
and err.exitCode
contains the child process's exit code. This Promise
will also reject, with err.code === 'Timeout'
, if the child process
runs for longer than the allowed period.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
kwargs |
object |
<optional> |
Properties
|
Returns:
- Type
- Promise.<*>
ImmediateContent
Provide content as a string
- Source:
Properties:
Name | Type | Description |
---|---|---|
immediate |
string | The text to process |
Type:
- object
OnDiskContent
Indicate content stored on the disk
- Source:
Properties:
Name | Type | Description |
---|---|---|
path |
string | Path to the file containing the content |
Type:
- object
TextContent
- Source:
Type:
ToolkitRunnerFunc(subcommand, kwargsopt) → {Promise.<*>}
- Source:
See CommandRunnerFunc for description of params and return value
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
subcommand |
string | The name of the subcommand, passed as the first argument to the program |
|||||||||||||||||||||||||||||||||||||||||||||
kwargs |
object |
<optional> |
Properties
|
Returns:
- Type
- Promise.<*>
Events
execute
This event is emitted to the opts.tracer
given in a call to
CommandRunner when the resulting
CommandRunnerFunc or ToolkitRunnerFunc is called.
The event is emitted before child_process.spawn
is called. The parameters
of the event correspond to the arguments to child_process.spawn
.
Parameters:
Name | Type | Description |
---|---|---|
program |
string | The name of the program to be passed to |
arguments |
Array.<string> | The array of arguments to be passed to |
options |
object | The options object to be passed to |
executing
This event is emitted to the opts.tracer
given in a call to
CommandRunner when the resulting
CommandRunnerFunc or ToolkitRunnerFunc is called.
This event is emitted from the synchronous context in which
child_process.spawn
is called, allowing manipulation of the stdin
,
stdout
, and stderr
streams before they are connected to the processing
defined for the tool.
Parameters:
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
props |
object |
Properties
|