You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+6
Original file line number
Diff line number
Diff line change
@@ -103,6 +103,12 @@ The "primitives" for the package are defined in `pick_git/core.py` and are liste
103
103
The public methods whose names are passed to __pick-git__ in the `--function` argument, for example `branch` or `commit`, are defined in a mixin class in `pick_git/helpers.py`. I'm sure there are use cases I haven't thought of that deserve public functions, and I would be grateful for contributors.
104
104
105
105
106
+
### Development
107
+
See `main.py` in the root of the repo? This script is there for making it easy to test the package. It ensures the __pick-git__ executable can be invoked from the command line, without going through the shim created by `setuptools` when the package is installed.
108
+
109
+
For example, from the root of the repo, just try running `python main.py --function commit`.
110
+
111
+
106
112
## Tests
107
113
The package currently has no tests. This is because __pick-git__ requires user keystrokes to return a value. Sending keystrokes isn't part of Python's standard library, and anyway Python doesn't seem like the best way to do this, although [this seems promising](http://stackoverflow.com/questions/12755968/sending-arrow-keys-to-popen).
0 commit comments