Skip to content

Commit 9dee199

Browse files
authored
Merge pull request #920 from SteveL-MSFT/default-yaml
Fix default output to YAML when used interactively
2 parents 7d0fefd + c4be441 commit 9dee199

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dsc/src/resource_command.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ pub fn get(dsc: &DscManager, resource_type: &str, input: &str, format: Option<&G
5555
let format = match format {
5656
Some(&GetOutputFormat::PrettyJson) => Some(&OutputFormat::PrettyJson),
5757
Some(&GetOutputFormat::Yaml) => Some(&OutputFormat::Yaml),
58+
None => None,
5859
_ => Some(&OutputFormat::Json),
5960
};
6061
write_object(&json, format, false);

0 commit comments

Comments
 (0)