Liking cljdoc? Tell your friends :D

commando.impl.dependency


build-dependency-graphclj/s

(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.
sourceraw docstring

find-command-dependenciesclj/smultimethod

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)
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)
sourceraw docstring

find-commands-at-target-pathclj/s

(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.
sourceraw docstring

path-exists-in-instruction?clj/s

(path-exists-in-instruction? instruction path)

Checks if a path exists in the instruction map.

Checks if a path exists in the instruction map.
sourceraw docstring

point-find-parent-commandclj/s

(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.
sourceraw docstring

point-target-pathclj/s

(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.
sourceraw docstring

resolve-relative-pathclj/s

(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.
sourceraw docstring

throw-point-errorclj/s

(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.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close