LibTmux.Workspace.WorkspaceFile.Resolve
- Workspace
File Resolve( string baseDirectory , IReadOnly <string, string>? variables = null )Dictionary -
Resolves inherited pane directories against an explicit document base.
Description
Resolves relative paths against the parent declaration's directory. Expansion accepts $NAME, ${NAME}, and a leading ~ using the supplied HOME variable; $$ produces a literal dollar sign. Session, window and pane option values expand supplied variables; unknown variables remain literal. Resolution reads neither the process environment nor the filesystem. The builder treats resolved directories as literal paths, including tmux format characters. Commands, the host script, names and environment values remain literal. Failures retain the original YAML or JSON value's line and column when the declaration was parsed.
- Parameters
-
-
baseDirectory(string) – The absolute directory containing the declaration. -
variables(IReadOnly <string, string>?) – The only variables available to directory and option-value expansion.Dictionary Default
null
-
- Returns
-
A new declaration with absolute inherited directories and its document directory.
- Errors
-
-
Argument
Exception – The document base is not absolute. -
Workspace
Format – A directory or expansion is invalid.Exception
-
Guides
task materialPages that discuss Resolve.