UNPKG

sln-opener

Version:

Simple command line tool for opening visual studio solutions from their current directory. Useful if you work from the command prommpt using tools like git-posh.

23 lines (19 loc) 606 B
#!/usr/bin/env node const isAdmin = require('is-admin'); const colors = require('colors'); const config = require('./config'); const menu = require('./mainMenu'); isAdmin().then(admin => { if (admin) { startUp(); } else { console.log('You need elevated permission to run this tool. Please reload your CLI with administrative access.'.bgRed); } }); var startUp = function() { let vsPath = config.getValidVsPath(); if (vsPath != '') { let solutions = config.getSolutions(); menu.loadSolution(solutions, vsPath); } };