tools: Executables attribute is redundant in the yaml file.
The executables is determined by the command.
This commit is contained in:
parent
b9f1d0e7f9
commit
a5a7e24d4f
6 changed files with 149 additions and 25 deletions
|
|
@ -634,12 +634,13 @@ def godoc(path):
|
|||
return Status.normal, fill3.Text(stdout)
|
||||
|
||||
|
||||
def make_tool_function(dependencies, url, executables, command,
|
||||
success_status=None, error_status=None):
|
||||
def make_tool_function(dependencies, url, command, success_status=None,
|
||||
error_status=None):
|
||||
command = command.split()
|
||||
executables = set([command[0]])
|
||||
success_status = None if success_status is None else Status[success_status]
|
||||
error_status = None if error_status is None else Status[error_status]
|
||||
@deps(deps=set(dependencies), url=url, executables=set(executables))
|
||||
@deps(deps=set(dependencies), url=url, executables=executables)
|
||||
def func(path):
|
||||
return _run_command(command + [path], success_status, error_status)
|
||||
return func
|
||||
|
|
@ -770,6 +771,10 @@ class Result:
|
|||
def appearance_min(self):
|
||||
return [status_to_str(self.status)]
|
||||
|
||||
def as_html(self):
|
||||
html, styles = termstr.TermStr(status_to_str(self.status)).as_html()
|
||||
return '<a href="tool-path">%s</a>' % html
|
||||
|
||||
|
||||
def generic_tools():
|
||||
return [contents, metadata]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue