alwaysai
Version:
The alwaysAI command-line interface (CLI)
16 lines (14 loc) • 400 B
text/typescript
import { CliLeaf } from '@alwaysai/alwayscli';
import { CliAuthenticationClient } from '../../infrastructure';
export const userLogout = CliLeaf({
name: 'logout',
description: 'Log out of the alwaysAI Cloud',
async action() {
try {
CliAuthenticationClient().signOut();
return 'Logged out successfully';
} catch {
return 'An error occurred logging out';
}
}
});