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
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@
27
27
## Install
28
28
29
29
```
30
-
pip install -U python-shellrunner
30
+
pip install -U shellrunner
31
31
```
32
32
33
33
## Usage
@@ -83,7 +83,7 @@ Because writing anything remotely complicated in bash kinda sucks :)
83
83
84
84
One of the primary advantages of ShellRunner's approach is that you can seamlessly swap between the shell and Python. Some things are just easier to do in a shell (e.g. pipelines) and a lot of things are easier/better in Python (control flow, error handling, etc).
85
85
86
-
Also, users of [fish](https://github.com/fish-shell/fish-shell) might know that it [does not offer a way to easily exit a script if a command fails](https://github.com/fish-shell/fish-shell/issues/510). ShellRunner adds `set -e` and `pipefail` like functionality to any shell. Leverage the improved syntax of your preferred shell and the (optional) saftey of bash.
86
+
Also, users of [fish](https://github.com/fish-shell/fish-shell) might know that it [does not offer a way to easily exit a script if a command fails](https://github.com/fish-shell/fish-shell/issues/510). ShellRunner adds `set -e` and `pipefail` like functionality to any shell. Leverage the improved syntax of your preferred shell and the (optional) safety of bash.
87
87
88
88
### Similar Projects
89
89
@@ -95,7 +95,7 @@ ShellRunner is very similar to zxpy and shellpy but aims to be more simple in it
95
95
96
96
## Advanced Usage
97
97
98
-
A note on compatability: ShellRunner should work with on any POSIX-compliant system (and shell). No Windows support at this time.
98
+
A note on compatibility: ShellRunner should work with on any POSIX-compliant system (and shell). No Windows support at this time.
99
99
100
100
Confirmed compatible with `sh` (dash), `bash`, `zsh`, and `fish`.
101
101
@@ -104,7 +104,7 @@ Commands are automatically run with the shell that invoked your python script (t
104
104
```python
105
105
# my_script.py
106
106
X("echo hello | string match hello")
107
-
# Works if my_script.py is executed under fish. Will obviously fail if using bash.
107
+
# Works if my_script.py is executed under fish (string match). Will obviously fail if using bash.
108
108
```
109
109
110
110
### Shell Command Result
@@ -186,7 +186,7 @@ X([
186
186
There are a few keyword arguments you can provide to adjust the behavior of `X`:
`shell: str` (Default: the invoking shell) - Shell that will be used to execute the commands. Can be a path or simply the name (e.g. "/bin/bash", "bash").
0 commit comments