Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ param(
[ValidateSet('none','aarch64-pc-windows-msvc','x86_64-pc-windows-msvc')]
$architecture = 'none',
[switch]$Clippy,
[switch]$Pedantic,
[switch]$Test
)

Expand Down Expand Up @@ -40,7 +41,12 @@ foreach ($project in $projects) {
try {
Push-Location "$PSScriptRoot/$project" -ErrorAction Stop
if ($Clippy) {
cargo clippy @flags -- -Dwarnings
if ($Pedantic) {
cargo clippy @flags --% -- -Dwarnings -Dclippy::pedantic
}
else {
cargo clippy @flags -- -Dwarnings
}
}
else {
cargo build @flags
Expand Down
9 changes: 9 additions & 0 deletions dsc/examples/parallel.dsc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,14 @@ resources:
properties:
keyPath: HKCU\example2
_ensure: present
- name: mygroup
type: DSC/Group
properties:
resources:
- name: myreg
type: Microsoft.Windows.Registry
properties:
keyPath: HKCU\example2
_ensure: absent
dependsOn:
- '[DSC/ParallelGroup]myParallelGroup'
32 changes: 32 additions & 0 deletions dsc/examples/powershell.dsc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Example on how concurrency would be defined in the configuration.
$schema: https://schemas.microsoft.com/dsc/2023/03/configuration.schema.json
resources:
- name: PS7
type: DSC/PowerShell
properties:
resources:
- name: psgallery
type: Microsoft.PowerShell.PSGallery/PSGallery
properties:
name: foo
url: http://bar
- name: my file
type: xFile/File
properties:
path: xyz
content: hello world
- name: WinPS
type: DSC/WindowsPowerShell
properties:
resources:
- name: psgallery
type: Microsoft.PowerShell.PSGallery/PSGallery
properties:
name: foo
url: http://bar
- name: my file
type: xFile/File
properties:
path: xyz
content: hello world

3 changes: 1 addition & 2 deletions dsc/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,14 @@ pub enum ResourceSubCommand {
},
}

#[derive(Debug, Clone, PartialEq, Eq, ValueEnum)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, ValueEnum)]
pub enum DscType {
GetResult,
SetResult,
TestResult,
DscResource,
ResourceManifest,
Configuration,
ConfigurationAndResources,
ConfigurationGetResult,
ConfigurationSetResult,
ConfigurationTestResult,
Expand Down
Loading