Liking cljdoc? Tell your friends :D

atomist.editors


check-do-with-glob-patterns-errorscljs

(check-do-with-glob-patterns-errors project-callback)

edit-inside-PR only understands completes the PR when the outer project callback returns :done

edit-inside-PR only understands completes the PR when the outer project callback returns :done
raw docstring

conditional-json-editorcljs

(conditional-json-editor path-to-edit should-edit? editor)

create a file editor that will conditionally converge a string value at a path in an associate data structure

params should-edit? - (content) -> boolean which must be true for the edit to take place path-to-edit - path to be used in get-in/update-in/assoc-in for associative maps target-string - the content to converge on (at the path-to-edit) if the should-edit? matches the content returns a function that will search a k8 Deployment spec for an updater config matching the owner/repo and then updates that deployment spec

create a file editor that will conditionally converge a string value at a path in an associate data structure

params
  should-edit? - (content) -> boolean which must be true for the edit to take place
  path-to-edit - path to be used in get-in/update-in/assoc-in for associative maps
  target-string - the content to converge on (at the path-to-edit) if the should-edit? matches the content
returns a function that will search a k8 Deployment spec for an updater config matching the owner/repo and
        then updates that deployment spec
raw docstring

do-with-glob-patternscljs

(do-with-glob-patterns file-callback glob-patterns)

json-editorcljs

(json-editor path-to-edit editor)

create a file editor that will converge a value at a path in an associative data structure returns a file callback function (f) -> chan

create a file editor that will converge a value at a path in an associative data structure
returns a file callback function (f) -> chan
raw docstring

perform-editscljs

(perform-edits file-editor glob-patterns token ref commit-message)

standard template for using the SDM to do file edits returns a channel that will emit a value with the editor is complete

standard template for using the SDM to do file edits
returns a channel that will emit a value with the editor is complete
raw docstring

perform-edits-in-PR-with-multiple-glob-patternscljs

(perform-edits-in-PR-with-multiple-glob-patterns
  file-editor
  glob-patterns
  token
  ref
  {:keys [branch body title target-branch] :as opts})

perform some edits against a set of files identified by glob-patterns the edits should go into a PR params file-editor - (f) => chan glob-patterns - coll of glob pattern strings token - git token ref - {:keys [owner name branch]} opts - {:keys [branch body title target-branch]}

perform some edits against a set of files identified by glob-patterns
the edits should go into a PR
params
  file-editor - (f) => chan
  glob-patterns - coll of glob pattern strings
  token - git token
  ref - {:keys [owner name branch]}
  opts - {:keys [branch body title target-branch]}
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close