getCliExamplesHelp method
Returns the CLI examples section (for --help).
Implementation
String getCliExamplesHelp() {
final name = toolName.toLowerCase();
final ext = toolExtension;
return '''
<cyan>**Examples**</cyan>
<yellow>$name</yellow> Start interactive REPL
<yellow>$name myscript.dart</yellow> Execute a Dart file and exit
<yellow>$name "1 + 2"</yellow> Evaluate expression and exit
<yellow>$name "DateTime.now()"</yellow> Evaluate expression (bridges available)
<yellow>$name myscript.$ext</yellow> Same as <yellow>$name -run-replay myscript.$ext</yellow>
<yellow>$name -run-replay setup.replay.txt</yellow> Execute replay file and exit
<yellow>$name -run-replay test.$ext -test</yellow> Run replay in test mode
<yellow>$name -session mysession</yellow> Start or resume a named session
<yellow>$name -replace-session mysession</yellow> Delete session and start fresh
<yellow>$name -replay setup.$ext -session x</yellow> Replay file and start session
<yellow>$name -list-sessions</yellow> List available sessions
<yellow>$name --dump-configuration</yellow> Dump configuration
<yellow>$name --bot-mode</yellow> Run as Telegram bot server
<yellow>echo 'print(42);' | $name --stdin</yellow> Execute code from stdin (auto-wrapped)
<yellow>cat script.dart | $name --stdin</yellow> Pipe a complete script via stdin
<yellow>echo 'return 5+6;' | $name --stdin</yellow> Bare expression, exit code = result''';
}