Skip to main content

discover

Function discover 

Source
pub fn discover(config: &CloudConfig, env: &Environment<'_>) -> Vec<Source>
Expand description

Every source this machine and the config describe, in display order.

config is the effective one, with the environment and command line folded in. A configured source whose name matches a detected one replaces it. Nothing here runs a command: credentials a profile gets from the AWS CLI are fetched when the source is used (Source::with_credentials).