Skip to content

Commit

Permalink
Adjustments to stay in sync with subprocess.
Browse files Browse the repository at this point in the history
  • Loading branch information
feluxe committed Oct 12, 2017
1 parent dc6c12f commit 50e0450
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CONFIG.yaml
@@ -1,6 +1,6 @@
"public_name": "cmdinter"
"interal_name": "cmdinter"
"version": "1.0.4"
"version": "1.0.7"
"license": "unlicensed"
"author": "Felix Meyer-Wolters"
"author_email": "felix@meyerwolters.de"
Expand Down
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -24,7 +24,7 @@ class CmdFuncResult(NamedTuple):
value: Any
```

`return_msg`, contains a cmd summary with a Status flag (see Status below).
`summary`, contains a cmd summary with a Status flag (see Status below).
E.g.:

```
Expand All @@ -40,7 +40,7 @@ return via the `return` keyword.

### Status

Status flags that can be used as `return_msg` prefix.
Status flags that can be used as `summary` prefix.

```python
class Status(object):
Expand Down Expand Up @@ -103,7 +103,7 @@ object.
class CmdResult(NamedTuple):
returnvalue: Any
returncode: int
return_msg: str
summary: str
output: Optional[str]
error: Optional[str]
traceback: Optional[str]
Expand Down
2 changes: 1 addition & 1 deletion build.py
Expand Up @@ -17,7 +17,7 @@ def build_sequence() -> None:

print(h3('Build Results'))
for command in result:
print(command.return_msg)
print(command.summary)


def execute() -> None:
Expand Down
2 changes: 1 addition & 1 deletion cmdinter/__init__.py
Expand Up @@ -134,7 +134,7 @@ def _handle_cmd_function(
return CmdResult(
returnvalue=func_result and getattr(func_result, 'returnvalue'),
returncode=func_result and getattr(func_result, 'returncode'),
summary=func_result and getattr(func_result, 'return_msg'),
summary=func_result and getattr(func_result, 'summary'),
stdout=output,
stderr=error,
traceback=trace
Expand Down
2 changes: 1 addition & 1 deletion publish.py
Expand Up @@ -109,7 +109,7 @@ def publish() -> None:
print(h3('Publish Results'))

for i, result in enumerate(results):
print(result.return_msg)
print(result.summary)


if __name__ == '__main__':
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
@@ -1,8 +1,8 @@
buildlib==0.0.0a20
buildlib==0.0.0a21
cmdinter==0.0.0a13
headlines==0.0.0a5
prmt==0.0.0a8
processy==0.0.0a5
processy==1.0.2
py==1.4.34
pytest==3.2.0
ruamel.yaml==0.15.34

0 comments on commit 50e0450

Please sign in to comment.