We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef7acc3 commit 15ccd6fCopy full SHA for 15ccd6f
24 files changed
Cargo.toml
@@ -21,7 +21,6 @@ members = [
21
"resources/sshdconfig",
22
"resources/WindowsUpdate",
23
"resources/windows_service",
24
- "resources/windows_feature",
25
"resources/windows_firewall",
26
"tools/dsctest",
27
"tools/test_group_resource",
@@ -52,7 +51,6 @@ default-members = [
52
51
53
54
55
56
57
58
@@ -85,7 +83,6 @@ Windows = [
85
83
86
84
87
88
89
90
91
data.build.json
@@ -109,7 +109,6 @@
109
"windows_firewall.exe",
110
"windows_service.exe",
111
"windows_service.dsc.resource.json",
112
- "windows_feature.exe",
113
"windows_feature.dsc.resource.json",
114
"wmi.dsc.resource.json",
115
"wmi.resource.ps1",
@@ -182,7 +181,7 @@
182
181
"SupportedPlatformOS": "Windows",
183
"Binaries": ["dism_dsc"],
184
"CopyFiles": {
185
- "Windows": ["optionalfeature.dsc.resource.json", "featureondemand.dsc.resource.json"]
+ "Windows": ["optionalfeature.dsc.resource.json", "featureondemand.dsc.resource.json", "windows_feature.dsc.resource.json"]
186
}
187
},
188
{
@@ -480,21 +479,6 @@
480
479
]
481
482
483
- {
484
- "Name": "windows_feature",
485
- "Kind": "Resource",
486
- "RelativePath": "resources/windows_feature",
487
- "SupportedPlatformOS": "Windows",
488
- "IsRust": true,
489
- "Binaries": [
490
- "windows_feature"
491
- ],
492
- "CopyFiles": {
493
- "Windows": [
494
- "windows_feature.dsc.resource.json"
495
- ]
496
- }
497
- },
498
499
"Name": "dsctest",
500
"Kind": "Resource",
resources/dism_dsc/.project.data.json
@@ -5,6 +5,6 @@
5
6
7
8
9
10
resources/dism_dsc/locales/en-us.toml
@@ -2,10 +2,10 @@ _version = 1
2
3
[main]
4
missingArguments = "Missing operation and resource type arguments"
-usage = "Usage: dism_dsc <get|set|export> <optional-feature|feature-on-demand>"
+usage = "Usage: dism_dsc <get|set|export> <optional-feature|feature-on-demand|windows-feature>"
windowsOnly = "This resource is only supported on Windows"
unknownOperation = "Unknown operation '%{operation}'"
-unknownResourceType = "Unknown resource type '%{resource_type}'. Expected 'optional-feature' or 'feature-on-demand'"
+unknownResourceType = "Unknown resource type '%{resource_type}'. Expected 'optional-feature', 'feature-on-demand', or 'windows-feature'"
errorReadingInput = "Error reading input: %{err}"
11
[get]
@@ -60,3 +60,8 @@ getCapabilitiesFailed = "DismGetCapabilities failed: HRESULT %{hr}"
60
getCapabilityInfoFailed = "DismGetCapabilityInfo failed for '%{name}': HRESULT %{hr}"
61
addCapabilityFailed = "DismAddCapability failed for '%{name}': HRESULT %{hr}"
62
removeCapabilityFailed = "DismRemoveCapability failed for '%{name}': HRESULT %{hr}"
63
+
64
+[windows_feature_helper]
65
+whatIfEnable = "Would enable feature '%{name}'"
66
+whatIfDisable = "Would disable feature '%{name}' (remove payload: false)"
67
+whatIfRemove = "Would remove feature '%{name}' (remove payload: true)"
0 commit comments