Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aws/aws-cli
/ write_output
Method
write_output
awscli/customizations/cloudformation/package.py:176–182 ·
view source on GitHub ↗
(self, output_file_name, data)
Source
from the content-addressed store, hash-verified
174
return
exported_str
175
176
def
write_output(self, output_file_name, data):
177
if
output_file_name is None:
178
sys.stdout.write(data)
179
return
180
181
with
open(output_file_name,
"w"
)
as
fp:
182
fp.write(data)
Callers
2
_run_main
Method · 0.95
test_write_output_to_stdout
Method · 0.80
Calls
1
write
Method · 0.45
Tested by
1
test_write_output_to_stdout
Method · 0.64