nickstenning / honcho

Honcho: a python clone of Foreman. For managing Procfile-based applications.
http://pypi.python.org/pypi/honcho
MIT License
1.59k stars 145 forks source link

export: Display message about writing file #112

Closed msabramo closed 9 years ago

msabramo commented 9 years ago

This makes it consistent with Foreman (See #109) and is just nice for the user to know what is happening. Looks like this:

[marca@marca-mac2 export_test]$ honcho export supervisord .
[honcho export] writing: export_test.conf

[marca@marca-mac2 export_test]$ honcho export upstart .
[honcho export] writing: export_test-ansvc.conf
[honcho export] writing: export_test-ansvc-1.conf
[honcho export] writing: export_test.conf
nickstenning commented 9 years ago

This kind of output should go to sys.stderr I think.

msabramo commented 9 years ago

This kind of output should go to sys.stderr I think.

Done.

nickstenning commented 9 years ago

Ah, right, but I wouldn't use sys.stderr.write.

print(msg, file=sys.stderr)
msabramo commented 9 years ago

Updated.

msabramo commented 9 years ago

@nickstenning, @slafs: How does this look?

slafs commented 9 years ago

LGTM

msabramo commented 9 years ago

I should look at #119 before merging this

nickstenning commented 9 years ago

Added in 3d2b887.