Skip to content

Add windows support#194

Merged
mthenw merged 5 commits intomthenw:masterfrom
mojoaxel:windowsSupport
Feb 3, 2020
Merged

Add windows support#194
mthenw merged 5 commits intomthenw:masterfrom
mojoaxel:windowsSupport

Conversation

@mojoaxel
Copy link
Copy Markdown
Contributor

@mojoaxel mojoaxel commented Feb 2, 2020

fixes #111
see also #175

@mojoaxel mojoaxel requested a review from mthenw February 2, 2020 20:33
## Features

* log rotation
* log rotation (not on windows!)
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Suggested change
* log rotation (not on windows!)
* log rotation (not on Windows)

};
this._buffer = new CBuffer(options.buffer);

var stream;
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Suggested change
var stream;
let stream;

}

const tail = childProcess.spawn('tail', ['-n', options.buffer, followOpt].concat(path));

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Suggested change

/* Check if this os provides the `tail` command. */
const hasTailCommand = commandExistsSync('tail');
if (hasTailCommand) {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Suggested change

};

module.exports = (path, options) => new Tail(path, options);
module.exports = (path, options) => new Tail(path, options); No newline at end of file
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Suggested change
module.exports = (path, options) => new Tail(path, options);
module.exports = (path, options) => new Tail(path, options);

@mthenw mthenw merged commit 0eac303 into mthenw:master Feb 3, 2020
@mthenw
Copy link
Copy Markdown
Owner

mthenw commented Feb 3, 2020

Thanks. I will fix the minor issues once it's in the master.

@mojoaxel
Copy link
Copy Markdown
Contributor Author

mojoaxel commented Feb 3, 2020

@mthenw Thanks! 🎉 🚀

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.

Windows support

2 participants