MCPcopy Create free account
hub / github.com/defold/defold / parse_lein_string

Function parse_lein_string

editor/scripts/bundle.py:368–373  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

366 return invoke_lein(['with-profile', profile, 'update-in', key, 'clojure.core/prn', '--', 'version'], jdk_path=jdk_path)
367
368def parse_lein_string(value):
369 for line in value.splitlines():
370 line = line.strip()
371 if line.startswith('"'):
372 return json.loads(line)
373 raise Exception("Unable to parse Leiningen string from output:\n%s" % value)
374
375def parse_lein_regexes(value):
376 for line in value.splitlines():

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected