Comments (2)
Should be fixed in the next preview version. Now, either a resource provider can say that it needs administrative permissions, or you can opt-in for it when declaring the resource.
context.Resource<PowerShellScript>("Install Chocolatey")
.Script("~/install-chocolatey.ps1")
.RequireAdministrator()
.Unless("if (Test-Path \"$($env:ProgramData)/chocolatey/choco.exe\") { exit 1 }")
.After<RegistryKey>("Set execution policy")
.After<Download>("https://chocolatey.org/install.ps1");
from cupboard.
Yes, I agree. Will make this configurable for each provider and only require sudo if a used provider needs it.
from cupboard.
Related Issues (20)
- Add Scoop resource HOT 1
- Enable Discussions HOT 1
- Could not load file or assembly Microsoft.Management.Infrastructure HOT 2
- Add a ` -i|--interactive` flag to step through each Resource HOT 1
- Add support for PowerShell Core on non-Windows machines
- Add support for chocolatey parameters HOT 1
- Add support for chocolatey flags
- DotNetTool Provider
- Add support to winget flags
- Support Reboot & Resume HOT 1
- Question: Will it support MacOs or Linux HOT 4
- Compiler errors when following README HOT 1
- Power scheme provider
- Windows Firewall Provider
- Cannot create registry key without value
- CupboardFixture dependency injection should be open for extension. HOT 4
- package provider cached output does not work well for chocolatey and winget
- Update to net6.0 HOT 1
- remove Mono.Posix.NETStandard ? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cupboard.