dssg / dssg/argcmdr

lazy run modifiers

Open
#25 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
14
Forks
0
PR merge metrics
No merged PRs in 30d

Description

The run modifiers supplied by argcmdr should vary from those of plumbum to permit lazy execution, and such that `Local` commands' output syntax needn't include tuples.

For example:

```python
class PrintDir(Local):

def prepare(self):
return self.local.FG & self.local['ls']
```

The above is arguably clearer and more attractive syntactically than returning the tuple `(self.local.FG, self.local['ls'])`.

In addition, the above syntax is closer (if not identical) to the use of run modifiers in plumbum.

(In the long run, the tuple syntax could also be deprecated, and eventually removed, simplifying that bit of argcmdr code.)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.