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

Method display_cmd

dev-tools/scripts/releaseWizard.py:1905–1921  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1903 return expand_jinja(data, v)
1904
1905 def display_cmd(self):
1906 lines = []
1907 if self.comment:
1908 if is_windows():
1909 lines.append("REM %s" % self.get_comment())
1910 else:
1911 lines.append("# %s" % self.get_comment())
1912 if self.cwd:
1913 lines.append("pushd %s" % self.cwd)
1914 redir = "" if self.redirect is None else " %s %s" % (">" if self.redirect_append is None else ">>" , self.get_redirect())
1915 line = "%s%s" % (expand_multiline(self.get_cmd(), indent=2), redir)
1916 # Print ~ or %HOME% rather than the full expanded homedir path
1917 line = abbreviate_homedir(line)
1918 lines.append(line)
1919 if self.cwd:
1920 lines.append("popd")
1921 return lines
1922
1923class UserInput(SecretYamlObject):
1924 yaml_tag = u'!UserInput'

Callers 2

generate_asciidocFunction · 0.80
runMethod · 0.80

Calls 7

get_commentMethod · 0.95
get_redirectMethod · 0.95
get_cmdMethod · 0.95
is_windowsFunction · 0.85
expand_multilineFunction · 0.85
abbreviate_homedirFunction · 0.85
appendMethod · 0.65

Tested by

no test coverage detected