MCPcopy Create free account
hub / github.com/wal-e/wal-e / _config_hint_generate

Function _config_hint_generate

wal_e/cmd.py:386–395  ·  view source on GitHub ↗

Generate HINT language for missing configuration

(optname, both_env_and_param)

Source from the content-addressed store, hash-verified

384
385
386def _config_hint_generate(optname, both_env_and_param):
387 """Generate HINT language for missing configuration"""
388 env = optname.replace('-', '_').upper()
389
390 if both_env_and_param:
391 option = '--' + optname.lower()
392 return ('Pass "{0}" or set the environment variable "{1}".'
393 .format(option, env))
394 else:
395 return 'Set the environment variable {0}.'.format(env)
396
397
398def s3_explicit_creds(args):

Callers 3

s3_explicit_credsFunction · 0.85
gs_credsFunction · 0.85
configure_backup_cxtFunction · 0.85

Calls 1

formatMethod · 0.80

Tested by

no test coverage detected