Handle argument parsing in C++
This commit is contained in:
parent
3f42909ecf
commit
b3ac48cf52
2 changed files with 13 additions and 18 deletions
|
|
@ -1,17 +1 @@
|
|||
'use strict';
|
||||
|
||||
const bindings = process.atomBinding('shell');
|
||||
|
||||
exports.beep = bindings.beep;
|
||||
exports.moveItemToTrash = bindings.moveItemToTrash;
|
||||
exports.openItem = bindings.openItem;
|
||||
exports.showItemInFolder = bindings.showItemInFolder;
|
||||
|
||||
exports.openExternal = (url, options) => {
|
||||
var activate = true;
|
||||
if (options != null && options.activate != null) {
|
||||
activate = !!options.activate;
|
||||
}
|
||||
|
||||
return bindings._openExternal(url, activate);
|
||||
};
|
||||
module.exports = process.atomBinding('shell');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue