protected function getSecret($section, $key, $prompt)
{
$cached = $this->getValue($section, $key, null, false);
// If we already prompted for the value
if ($cached) {
return $cached;
}
/** @var \Bart\Shell $shell */
$shell = Diesel::create('\\Bart\\Shell');
$secret = $shell->std_in_secret($prompt);
$this->updateRuntimeConfiguration($section, $key, $secret);
return $secret;
}