startCubeSandboxFlow method
Settings → Cube sandbox: pick disabled, one of the project's
.fah/cubes/*.yaml manifests, or a custom path. The pick applies live
through the same helpers as /cube use//cube off and persists as
the startup default (cube: section) in the user config.
Implementation
Future<void> startCubeSandboxFlow() async {
final picked = await _pickOption(
'cube sandbox',
await _cubeSandboxOptions(),
);
if (picked == null) return;
if (picked == _cubePickCustom) {
final path = await _askLine('cube manifest path (empty cancels): ');
final trimmed = path?.trim() ?? '';
if (trimmed.isEmpty) return;
await _applyCubeSelection(trimmed);
return;
}
await _applyCubeSelection(picked == _cubePickOff ? null : picked);
}