Skip to content
This repository has been archived by the owner on Jun 28, 2021. It is now read-only.
/ carob Public archive

A simple utility to automatically elevate and run chocolatey.

License

Notifications You must be signed in to change notification settings

cerebrate/carob

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

carob

Build status

Join the chat at https://gitter.im/cerebrate/carob

A trivial utility to automatically elevate and run chocolatey ( https://chocolatey.org/ ).

I, for one, never have an administrative PowerShell open when I want one. It's not the sort of thing I leave open routinely, especially as I can handle most things with functions wrapped around invoke-elevated, and having to remember to open one to run certain commands in mid-flow is, well, annoying. Mucking about with runas, almost as much so.

Unfortunately, since I use chocolatey as my package manager and take full advantage of it, said special occasions crop up more often than I'd like.

Enter carob.

Once it's installed, just use carob in exactly the way you'd use choco. If you aren't currently running in an elevated context, carob elevates for you (with associated UAC prompt) and runs choco elevated for you. If you are , carob simply passes the arguments straight through to choco.

In version >1.1, the chocolatey console output is seamlessly redirected to appear in the current console window; no second window, no need to pause.

Either way, you get what you want, no errors, no retyping, and if you're in the habit of logging your console activity to keep track of what you did, then your choco^Wcarob command line shows up in the right place.

Recommended installation procedure: via Chocolatey, obviously: https://chocolatey.org/packages/carob

About

A simple utility to automatically elevate and run chocolatey.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages