You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support relative script and source commands (#293)
## Usage and product changes
We support using relative paths for the `--script` command (relative to
the current directory), as well as relative paths for the REPL `source`
command.
When `source` is invoked _from_ a script, the sourced file is
relativised to the script, rather than the current working directory.
## Implementation
* Store the console's working directory, and the script directory if a
script is active (scripts can't be nested, which enables this!)
* Relativize to either the script directory or the working directory as
when running with `--script` mode and `>> source <path>
` commands
"Execute a file containing a sequence of TypeQL queries. Queries may be split over multiple lines using backslash ('\\')",
376
+
"Synchronously execute a file containing a sequence of TypeQL queries with full validation. Queries can be explicitly ended with 'end;' if required. Path may be absolute or relative to the invoking script (if there is one) otherwise relative to the current working directory.",
0 commit comments