Commit 9054a21
committed
shell command now uses cmd.Cmd.stdout for output
The main advantages of this are that shell command output can now be
- piped to another shell command
- redirected to a file
In the future, I may take it a step further where the output is piped, but using a pipe versus a real terminal changes the behavior of many shell commands, for example by getting rid of ANSI color and various other pretty formatting.1 parent cc7a330 commit 9054a21
2 files changed
Lines changed: 4 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1138 | 1138 | | |
1139 | 1139 | | |
1140 | 1140 | | |
1141 | | - | |
1142 | 1141 | | |
1143 | 1142 | | |
1144 | 1143 | | |
1145 | 1144 | | |
1146 | 1145 | | |
1147 | | - | |
1148 | | - | |
1149 | | - | |
| 1146 | + | |
| 1147 | + | |
1150 | 1148 | | |
1151 | | - | |
1152 | | - | |
1153 | | - | |
1154 | | - | |
1155 | | - | |
| 1149 | + | |
1156 | 1150 | | |
1157 | 1151 | | |
1158 | 1152 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
111 | | - | |
112 | 110 | | |
113 | 111 | | |
114 | 112 | | |
| |||
0 commit comments