MCPcopy 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_mainMethod · 0.95

Calls 1

writeMethod · 0.45

Tested by 1