MCPcopy Create free account
hub / github.com/dwavesystems/dwave-cloud-client / inspect

Function inspect

dwave/cloud/cli.py:185–199  ·  view source on GitHub ↗

Inspect existing configuration/profile.

(config_file, profile)

Source from the content-addressed store, hash-verified

183@config.command()
184@config_file_options()
185def inspect(config_file, profile):
186 """Inspect existing configuration/profile."""
187
188 try:
189 section = load_profile_from_files(
190 [config_file] if config_file else None, profile)
191
192 click.echo("Configuration file: {}".format(config_file if config_file else "auto-detected"))
193 click.echo("Profile: {}".format(profile if profile else "auto-detected"))
194 click.echo("---")
195 for key, val in section.items():
196 click.echo("{} = {}".format(key, val))
197
198 except (ValueError, ConfigFileReadError, ConfigFileParseError) as e:
199 click.echo(e)
200
201
202@config.command()

Callers

nothing calls this directly

Calls 2

load_profile_from_filesFunction · 0.90
formatMethod · 0.45

Tested by

no test coverage detected