(build-dependency-graph instruction cm-list)
Builds the dependency map for all commands in cm-list
.
Returns a map from CommandMapPath objects to their dependency sets.
Builds the dependency map for all commands in `cm-list`. Returns a map from CommandMapPath objects to their dependency sets.
Finds command dependencies based on dependency-type.
Returns a set of CommandMapPath objects that must execute before the given command.
Modes:
Finds command dependencies based on dependency-type. Returns a set of CommandMapPath objects that must execute before the given command. Modes: - :all-inside - depends on all commands inside the Command: if it Map - the values, if it Vector - elements of vectors - :all-inside-recur - depends on all commands nested within this command's path - :point - depends on command(s) at a specific path, defined by :point-key setting key. :point collect only one depedency - the only one it refering. - :point-and-all-inside-recur - joined approach of :point and :all-inside-recur. collect dependencies for path it pointing along with nested dependecies under the pointed item. First tries to find a command at the exact target path. If not found, walks up the path hierarchy to find parent commands that will create/modify the target path. - :none - no dependencies (not implemented, returns empty set by default)
(find-commands-at-target-path commands target-path)
Finds all commands at or nested within the target path.
Finds all commands at or nested within the target path.
(path-exists-in-instruction? instruction path)
Checks if a path exists in the instruction map.
Checks if a path exists in the instruction map.
(point-find-parent-command commands target-path)
Walks up the path hierarchy to find the first parent command that exists in commands.
Walks up the path hierarchy to find the first parent command that exists in commands.
(point-target-path instruction command-path-obj)
Returns the target path for a :point dependency, resolving relative navigation.
Returns the target path for a :point dependency, resolving relative navigation.
(resolve-relative-path base-path segments)
Resolves path segments with relative navigation (../ and ./) against a base path.
Resolves path segments with relative navigation (../ and ./) against a base path.
(throw-point-error command-path-obj target-path instruction)
Throws a standardized error for missing point dependencies.
Throws a standardized error for missing point dependencies.
cljdoc builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |