-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Return filename from UseTempLogFile() #4
Comments
My gut feel would be this.... If If In terms of returning the filename form But there's also I few other minor changes that I can think off as well
So if you want to generate a pull request for the file name change, I Owen On Thu, 2015-02-19 at 15:39 -0800, Joel Scoble wrote:
Dr. Owen Waller +44 (0)757 882 9933 Company Number: NI604010 |
After investigating this further, I'm not sure this is really needed. If the name of the file created by TempLogFile() is needed, it can be obtained by:
While it may be useful to a user of jww to have the created filename returned, it is something that can be obtained with another line of code and some assertion. This is a decision I will leave to Steve. I this is something that should be supported I will make a pull request, otherwise this issue can be closed. It should be noted that such a change would not affect existing code. |
I agree. Given that we can access the file handle via the exported But looking at the public interface again though it still doesn't feel right. We have both the Maybe the simplest thing we can do is just to add a |
Well just adding a I started thinking about this for the Hugo issue that spawned this, until asserting the As jww is currently written, I'm not sure there is a pressing need for I have been toying with the log flow described above and haven't been satisfied with anything I've done. I've been thinking about adding it to a custom branch of jww, but haven't gotten beyond contemplating it. |
I will soon remove this method and replace it with a new method that takes an |
This is related to a comment that @owenwaller left in his updated
hugo/utils_test.go
: gohugoio/hugo#818Is modifying
UseTempLogFile()
so that it returns the temp filename a change you would support? If so I can make a pull request.The text was updated successfully, but these errors were encountered: