@@ -337,7 +337,7 @@ pub fn validate_config(config: &str) -> Result<(), DscError> {
337
337
338
338
resource_types. push ( type_name. to_lowercase ( ) . to_string ( ) ) ;
339
339
}
340
- dsc. discover_resources ( & resource_types) ;
340
+ dsc. find_resources ( & resource_types) ;
341
341
342
342
for resource_block in resources {
343
343
let Some ( type_name) = resource_block[ "type" ] . as_str ( ) else {
@@ -402,33 +402,33 @@ pub fn resource(subcommand: &ResourceSubCommand, stdin: &Option<String>) {
402
402
list_resources ( & mut dsc, resource_name, adapter_name, description, tags, format) ;
403
403
} ,
404
404
ResourceSubCommand :: Schema { resource , format } => {
405
- dsc. discover_resources ( & [ resource. to_lowercase ( ) . to_string ( ) ] ) ;
405
+ dsc. find_resources ( & [ resource. to_lowercase ( ) . to_string ( ) ] ) ;
406
406
resource_command:: schema ( & dsc, resource, format) ;
407
407
} ,
408
408
ResourceSubCommand :: Export { resource, format } => {
409
- dsc. discover_resources ( & [ resource. to_lowercase ( ) . to_string ( ) ] ) ;
409
+ dsc. find_resources ( & [ resource. to_lowercase ( ) . to_string ( ) ] ) ;
410
410
resource_command:: export ( & mut dsc, resource, format) ;
411
411
} ,
412
412
ResourceSubCommand :: Get { resource, input, path, all, format } => {
413
- dsc. discover_resources ( & [ resource. to_lowercase ( ) . to_string ( ) ] ) ;
413
+ dsc. find_resources ( & [ resource. to_lowercase ( ) . to_string ( ) ] ) ;
414
414
if * all { resource_command:: get_all ( & dsc, resource, format) ; }
415
415
else {
416
416
let parsed_input = get_input ( input, stdin, path) ;
417
417
resource_command:: get ( & dsc, resource, parsed_input, format) ;
418
418
}
419
419
} ,
420
420
ResourceSubCommand :: Set { resource, input, path, format } => {
421
- dsc. discover_resources ( & [ resource. to_lowercase ( ) . to_string ( ) ] ) ;
421
+ dsc. find_resources ( & [ resource. to_lowercase ( ) . to_string ( ) ] ) ;
422
422
let parsed_input = get_input ( input, stdin, path) ;
423
423
resource_command:: set ( & dsc, resource, parsed_input, format) ;
424
424
} ,
425
425
ResourceSubCommand :: Test { resource, input, path, format } => {
426
- dsc. discover_resources ( & [ resource. to_lowercase ( ) . to_string ( ) ] ) ;
426
+ dsc. find_resources ( & [ resource. to_lowercase ( ) . to_string ( ) ] ) ;
427
427
let parsed_input = get_input ( input, stdin, path) ;
428
428
resource_command:: test ( & dsc, resource, parsed_input, format) ;
429
429
} ,
430
430
ResourceSubCommand :: Delete { resource, input, path } => {
431
- dsc. discover_resources ( & [ resource. to_lowercase ( ) . to_string ( ) ] ) ;
431
+ dsc. find_resources ( & [ resource. to_lowercase ( ) . to_string ( ) ] ) ;
432
432
let parsed_input = get_input ( input, stdin, path) ;
433
433
resource_command:: delete ( & dsc, resource, parsed_input) ;
434
434
} ,
0 commit comments