Skip to content
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

added command line option output to write db.json and _multiconfig.… #3122

Merged
merged 2 commits into from
Apr 25, 2018

Conversation

mgoldsborough
Copy link
Contributor

@mgoldsborough mgoldsborough commented Apr 16, 2018

I'm working with a read-only file system and I need a way to direct the output to a different path.

I added command line option output to write db.json and _multiconfig.yml to a path provided

  • Add test cases for the changes.
  • Passed the CI test.

@coveralls
Copy link

coveralls commented Apr 16, 2018

Coverage Status

Coverage increased (+0.003%) to 97.217% when pulling 83b1912 on mgoldsborough:outputPath into 373b9c7 on hexojs:master.

@@ -14,6 +15,22 @@ describe('config flag handling', () => {

function ConsoleReader() {
this.reader = [];
this.d = function(...args) {
var type = 'debug';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the differences of this.d and this.i are only type, could you refactor into a factory so that

this.d = readerStub("debug")
this.i = readerStub("info")

Thanks.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was just copying the style of the existing code. I didn't want to touch to many lines. It's also a test case, not production code. If you want this refactored, change impact this.w and this.e which are below these changes in the same file.

If you'd like this refactored, let me know. Otherwise I'll leave it as it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JLHwung bump.

@JLHwung JLHwung merged commit ad33b3c into hexojs:master Apr 25, 2018
thom4parisot pushed a commit to thom4parisot/hexo that referenced this pull request Jan 17, 2020
hexojs#3122)

* added command line option `output` to write db.json and _multiconfig.yml to a path provided

* fixes for appveyor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants