Skip to content

Commit 15ccd6f

Browse files
committed
Move content under dism_dsc
1 parent ef7acc3 commit 15ccd6f

24 files changed

Lines changed: 388 additions & 991 deletions

Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ members = [
2121
"resources/sshdconfig",
2222
"resources/WindowsUpdate",
2323
"resources/windows_service",
24-
"resources/windows_feature",
2524
"resources/windows_firewall",
2625
"tools/dsctest",
2726
"tools/test_group_resource",
@@ -52,7 +51,6 @@ default-members = [
5251
"resources/sshdconfig",
5352
"resources/WindowsUpdate",
5453
"resources/windows_service",
55-
"resources/windows_feature",
5654
"resources/windows_firewall",
5755
"tools/dsctest",
5856
"tools/test_group_resource",
@@ -85,7 +83,6 @@ Windows = [
8583
"resources/sshdconfig",
8684
"resources/WindowsUpdate",
8785
"resources/windows_service",
88-
"resources/windows_feature",
8986
"resources/windows_firewall",
9087
"tools/dsctest",
9188
"tools/test_group_resource",

data.build.json

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@
109109
"windows_firewall.exe",
110110
"windows_service.exe",
111111
"windows_service.dsc.resource.json",
112-
"windows_feature.exe",
113112
"windows_feature.dsc.resource.json",
114113
"wmi.dsc.resource.json",
115114
"wmi.resource.ps1",
@@ -182,7 +181,7 @@
182181
"SupportedPlatformOS": "Windows",
183182
"Binaries": ["dism_dsc"],
184183
"CopyFiles": {
185-
"Windows": ["optionalfeature.dsc.resource.json", "featureondemand.dsc.resource.json"]
184+
"Windows": ["optionalfeature.dsc.resource.json", "featureondemand.dsc.resource.json", "windows_feature.dsc.resource.json"]
186185
}
187186
},
188187
{
@@ -480,21 +479,6 @@
480479
]
481480
}
482481
},
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-
},
498482
{
499483
"Name": "dsctest",
500484
"Kind": "Resource",

resources/dism_dsc/.project.data.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
"SupportedPlatformOS": "Windows",
66
"Binaries": ["dism_dsc"],
77
"CopyFiles": {
8-
"Windows": ["optionalfeature.dsc.resource.json", "featureondemand.dsc.resource.json"]
8+
"Windows": ["optionalfeature.dsc.resource.json", "featureondemand.dsc.resource.json", "windows_feature.dsc.resource.json"]
99
}
1010
}

resources/dism_dsc/locales/en-us.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ _version = 1
22

33
[main]
44
missingArguments = "Missing operation and resource type arguments"
5-
usage = "Usage: dism_dsc <get|set|export> <optional-feature|feature-on-demand>"
5+
usage = "Usage: dism_dsc <get|set|export> <optional-feature|feature-on-demand|windows-feature>"
66
windowsOnly = "This resource is only supported on Windows"
77
unknownOperation = "Unknown operation '%{operation}'"
8-
unknownResourceType = "Unknown resource type '%{resource_type}'. Expected 'optional-feature' or 'feature-on-demand'"
8+
unknownResourceType = "Unknown resource type '%{resource_type}'. Expected 'optional-feature', 'feature-on-demand', or 'windows-feature'"
99
errorReadingInput = "Error reading input: %{err}"
1010

1111
[get]
@@ -60,3 +60,8 @@ getCapabilitiesFailed = "DismGetCapabilities failed: HRESULT %{hr}"
6060
getCapabilityInfoFailed = "DismGetCapabilityInfo failed for '%{name}': HRESULT %{hr}"
6161
addCapabilityFailed = "DismAddCapability failed for '%{name}': HRESULT %{hr}"
6262
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

Comments
 (0)