execute method
Execute the command.
Implementation
@override
Future<CommandResult> execute(String args, ToolUseContext context) async {
if (!isAuthenticated()) {
return const TextCommandResult('Not currently authenticated.');
}
onLogout();
return const TextCommandResult(
'Credentials cleared. You will need to re-authenticate to continue.',
);
}