Skip to content

Commit 3963389

Browse files
authored
Merge pull request #632 from Gijsreyn/spelling-words-1
Addresses minor spelling mistakes
2 parents 2c9f49e + 6ee57fb commit 3963389

File tree

9 files changed

+36
-36
lines changed

9 files changed

+36
-36
lines changed

docs/reference/schemas/config/functions/overview.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ parameters:
308308
list: { type: array }
309309
310310
resources:
311-
- name: Acess the properties of an object
311+
- name: Access the properties of an object
312312
type: Test/Echo
313313
properties:
314314
output:
@@ -394,7 +394,7 @@ results:
394394
- metadata:
395395
Microsoft.DSC:
396396
duration: PT0.0760186S
397-
name: Acess the properties of an object
397+
name: Access the properties of an object
398398
type: Test/Echo
399399
result:
400400
actualState:
@@ -417,7 +417,7 @@ parameters:
417417
list: { type: array }
418418
419419
resources:
420-
- name: Acess items in an array
420+
- name: Access items in an array
421421
type: Test/Echo
422422
properties:
423423
output:
@@ -441,7 +441,7 @@ results:
441441
- metadata:
442442
Microsoft.DSC:
443443
duration: PT0.0750682S
444-
name: Acess items in an array
444+
name: Access items in an array
445445
type: Test/Echo
446446
result:
447447
actualState:
@@ -476,7 +476,7 @@ parameters:
476476
list: { type: array }
477477
478478
resources:
479-
- name: Acess items in a nested array
479+
- name: Access items in a nested array
480480
type: Test/Echo
481481
properties:
482482
output:
@@ -496,7 +496,7 @@ results:
496496
- metadata:
497497
Microsoft.DSC:
498498
duration: PT0.1349442S
499-
name: Acess items in a nested array
499+
name: Access items in a nested array
500500
type: Test/Echo
501501
result:
502502
actualState:

dsc/locales/en-us.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ failedToOpenFile = "Failed to open included file"
5858
invalidFileContent = "Invalid UTF-8 sequence in included file"
5959
invalidFile = "Failed to read the configuration file as YAML or JSON"
6060
resolvingParameters = "Resolving parameters from file"
61-
failedParseParametersFile = "Failed to parse parameters file or conetnt to JSON"
61+
failedParseParametersFile = "Failed to parse parameters file or content to JSON"
6262
couldNotReadParametersFile = "Could not read parameters file"
6363
invalidPath = "Include path must not contain '..'"
6464
failedGetCurrentDirectory = "Failed to get current directory"
@@ -79,7 +79,7 @@ currentDirectory = "current directory"
7979
noParameters = "No parameters specified"
8080
parameters = "Parameters specified"
8181
failedConvertJson = "Failed to convert YAML to JSON"
82-
invalidParamters = "Parameters are not valid JSON or YAML"
82+
invalidParameters = "Parameters are not valid JSON or YAML"
8383
invalidPath = "Target path does not exist"
8484
failedSetParameters = "Parameter input failure"
8585
invalidInclude = "Failed to deserialize Include input"
@@ -109,7 +109,7 @@ invalidManifest = "Error in manifest for"
109109
failedToConvertJsonToString = "Failed to convert JSON to string"
110110
failedToReadTracingSetting = "Could not read 'tracing' setting"
111111
invalidTraceLevel = "Default to 'warn', invalid DSC_TRACE_LEVEL value"
112-
failedToSetTracing = "Unable to set global default tracing subscriber. Tracing is diabled."
112+
failedToSetTracing = "Unable to set global default tracing subscriber. Tracing is disabled."
113113
validatingSchema = "Validating against schema"
114114
failedToCompileSchema = "JSON Schema Compilation"
115115
validationFailed = "Failed validation"

dsc/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ fn check_debug() {
137137
}
138138
}
139139

140-
// Check if the dsc binary parent process is WinStore.App or Exploerer.exe
140+
// Check if the dsc binary parent process is WinStore.App or Explorer.exe
141141
#[cfg(windows)]
142142
fn check_store() {
143143
use std::io::Read;

dsc/src/subcommand.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ pub fn config(subcommand: &ConfigSubCommand, parameters: &Option<String>, mounte
329329
}
330330
},
331331
Err(err) => {
332-
error!("{}: {err}", t!("subcommand.invalidParamters"));
332+
error!("{}: {err}", t!("subcommand.invalidParameters"));
333333
exit(EXIT_INVALID_INPUT);
334334
}
335335
}

dsc/tests/dsc_resource_test.tests.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ Describe 'Invoke a resource test directly' {
2121
$out.inDesiredState | Should -Be $true
2222
}
2323

24-
It 'test returns proper error code if no input is provded' {
24+
It 'test returns proper error code if no input is provided' {
2525
$out = dsc resource test -r Microsoft/OSInfo 2>&1
2626
$LASTEXITCODE | Should -Be 1
2727
$out | Should -BeLike '*ERROR*'
2828
}
29-
}
29+
}

dsc/tests/dsc_variables.tests.ps1

+20-20
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
# Licensed under the MIT License.
33

44
Describe 'Configruation variables tests' {
5-
It 'Variables example config works' {
6-
$configFile = "$PSSCriptRoot/../examples/variables.dsc.yaml"
7-
$out = dsc config get -f $configFile | ConvertFrom-Json
8-
$LASTEXITCODE | Should -Be 0
9-
$out.results[0].result.actualState.output | Should -BeExactly 'myOutput is: Hello world!, myObject is: baz'
10-
}
5+
It 'Variables example config works' {
6+
$configFile = "$PSSCriptRoot/../examples/variables.dsc.yaml"
7+
$out = dsc config get -f $configFile | ConvertFrom-Json
8+
$LASTEXITCODE | Should -Be 0
9+
$out.results[0].result.actualState.output | Should -BeExactly 'myOutput is: Hello world!, myObject is: baz'
10+
}
1111

12-
It 'Duplicated variable takes last value' {
13-
$configYaml = @'
12+
It 'Duplicated variable takes last value' {
13+
$configYaml = @'
1414
$schema: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2024/04/config/document.json
1515
variables:
1616
myVariable: foo
@@ -21,14 +21,14 @@ resources:
2121
properties:
2222
output: "[variables('myVariable')]"
2323
'@
24-
$out = dsc config get -i $configYaml | ConvertFrom-Json
25-
Write-Verbose -Verbose $out
26-
$LASTEXITCODE | Should -Be 0
27-
$out.results[0].result.actualState.output | Should -Be 'bar'
28-
}
24+
$out = dsc config get -i $configYaml | ConvertFrom-Json
25+
Write-Verbose -Verbose $out
26+
$LASTEXITCODE | Should -Be 0
27+
$out.results[0].result.actualState.output | Should -Be 'bar'
28+
}
2929

30-
It 'Missing variable returns error' {
31-
$configYaml = @'
30+
It 'Missing variable returns error' {
31+
$configYaml = @'
3232
$schema: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2024/04/config/document.json
3333
variables:
3434
hello: world
@@ -38,9 +38,9 @@ resources:
3838
properties:
3939
output: "[variables('myVariable')]"
4040
'@
41-
$out = dsc config get -i $configYaml 2>&1 | Out-String
42-
Write-Verbose -Verbose $out
43-
$LASTEXITCODE | Should -Be 2
44-
$out | Should -BeLike "*Variable 'myVariable' does not exist or has not been initialized yet*"
45-
}
41+
$out = dsc config get -i $configYaml 2>&1 | Out-String
42+
Write-Verbose -Verbose $out
43+
$LASTEXITCODE | Should -Be 2
44+
$out | Should -BeLike "*Variable 'myVariable' does not exist or has not been initialized yet*"
45+
}
4646
}

dsc_lib/src/dscresources/dscresource.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ pub struct DscResource {
4646

4747
#[derive(Clone, Debug, PartialEq, Deserialize, Serialize, JsonSchema)]
4848
pub enum Capability {
49-
/// The resource supports retriving configuration.
49+
/// The resource supports retrieving configuration.
5050
Get,
5151
/// The resource supports applying configuration.
5252
Set,

registry/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ pub fn enable_tracing() {
135135
let subscriber = tracing_subscriber::Registry::default().with(fmt).with(filter);
136136

137137
if tracing::subscriber::set_global_default(subscriber).is_err() {
138-
eprintln!("Unable to set global default tracing subscriber. Tracing is diabled.");
138+
eprintln!("Unable to set global default tracing subscriber. Tracing is disabled.");
139139
}
140140
}
141141

runcommandonset/locales/en-us.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ failedReadStderr = "Failed to read stderr for"
1919
failedReadStdout = "Failed to read stdout for"
2020
failedWait = "Failed to wait for"
2121
invalidInput = "Input is not valid"
22-
unableToTrace = "Unable to set global default tracing subscriber. Tracing is diabled."
22+
unableToTrace = "Unable to set global default tracing subscriber. Tracing is disabled."

0 commit comments

Comments
 (0)