MCPcopy Create free account
hub / github.com/apache/solr / jinjaify

Method jinjaify

dev-tools/scripts/releaseWizard.py:1890–1903  ·  view source on GitHub ↗
(self, data, join=False)

Source from the content-addressed store, hash-verified

1888 return self.get_cmd()
1889
1890 def jinjaify(self, data, join=False):
1891 v = self.get_vars()
1892 if self.todo_id:
1893 v.update(state.get_todo_by_id(self.todo_id).get_vars_and_state())
1894 if isinstance(data, list):
1895 if join:
1896 return expand_jinja(" ".join(data), v)
1897 else:
1898 res = []
1899 for rf in data:
1900 res.append(expand_jinja(rf, v))
1901 return res
1902 else:
1903 return expand_jinja(data, v)
1904
1905 def display_cmd(self):
1906 lines = []

Callers 3

get_commentMethod · 0.95
get_redirectMethod · 0.95
get_cmdMethod · 0.95

Calls 7

get_varsMethod · 0.95
expand_jinjaFunction · 0.85
get_vars_and_stateMethod · 0.80
get_todo_by_idMethod · 0.80
updateMethod · 0.65
appendMethod · 0.65
joinMethod · 0.45

Tested by

no test coverage detected