.then( file => {

				if (options.open === true) {
					logger.info('openning file ', file);
					let open = require("opener");
					open(file);
				}
			})
Example #2
0
 //Use open for Windows and Mac, opener for Linux
 public static OpenUrl(url: string) : void {
     switch (process.platform) {
         case "win32":
         case "darwin":
             open(url);
             break;
         default:
             opener(url);
             break;
     }
 }