Skip to content

Commit 5b8e652

Browse files
author
Steve Lee (POWERSHELL HE/HIM) (from Dev Box)
committed
fix merge conflict
1 parent b9ba09f commit 5b8e652

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dsc/src/subcommand.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,14 +435,14 @@ pub fn resource(subcommand: &ResourceSubCommand, stdin: &Option<String>) {
435435
}
436436
}
437437

438-
fn list_resources(dsc: &mut DscManager, resource_name: &Option<String>, description: &Option<String>, tags: &Option<Vec<String>>, format: &Option<OutputFormat>) {
438+
fn list_resources(dsc: &mut DscManager, resource_name: &Option<String>, adapter_name: &Option<String>, description: &Option<String>, tags: &Option<Vec<String>>, format: &Option<OutputFormat>) {
439439
let mut write_table = false;
440440
let mut table = Table::new(&["Type", "Kind", "Version", "Caps", "RequireAdapter", "Description"]);
441441
if format.is_none() && atty::is(Stream::Stdout) {
442442
// write as table if format is not specified and interactive
443443
write_table = true;
444444
}
445-
for resource in dsc.list_available_resources(&resource_name.clone().unwrap_or_default()) {
445+
for resource in dsc.list_available_resources(&resource_name.clone().unwrap_or("*".to_string()), &adapter_name.clone().unwrap_or_default()) {
446446
let mut capabilities = "------".to_string();
447447
let capability_types = [
448448
(Capability::Get, "g"),

0 commit comments

Comments
 (0)