normalize_path

Normalizes a given path based on the repository structure to the working directory. Good for determining the path of imports and such.

Arguments

NameTypeDescriptionRequired

path_to_resolve

string

The path to normalize based on the repository structure.

reference_path

string

The path to use as the reference for normalization.

Returns

TypeDescription

string

The normalized path relative to the working directory.

Example

- name: normalize_path
  arguments:
    path_to_resolve: <the-path-to-resolve>
    reference_path: <the-reference-path-to-help-with-resolution>
  returns: <the-normalized-path-to-the-path-to-resolve>

Last updated