File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -93,8 +93,9 @@ def main():
93
93
# is .edit.
94
94
if text .startswith ('.edit' ):
95
95
# Hardcoded VIM editor for now. It's for demo purposes!
96
- all_commands = '\n ' .join ([h for h in list (history ) if not
97
- h .startswith (('.' , '!' ))])
96
+ all_commands = '\n ' .join (
97
+ ['aws ' + h for h in list (history )
98
+ if not h .startswith (('.' , '!' ))])
98
99
with tempfile .NamedTemporaryFile ('w' ) as f :
99
100
f .write (all_commands )
100
101
f .flush ()
@@ -106,9 +107,7 @@ def main():
106
107
full_cmd = text [1 :]
107
108
else :
108
109
full_cmd = 'aws ' + text
109
- p = subprocess .Popen (full_cmd , shell = True , stdout = subprocess .PIPE )
110
- for line in p .stdout :
111
- sys .stdout .write (line )
110
+ p = subprocess .Popen (full_cmd , shell = True )
112
111
p .communicate ()
113
112
114
113
You can’t perform that action at this time.
0 commit comments