/**
 * Logout Command
 *
 * Clears stored authentication credentials.
 */
import pc from 'picocolors';
import { clearCredentials, isLoggedIn } from '../lib/auth.js';
export async function logout() {
    console.log(pc.bold('\nQuickback Logout\n'));
    const loggedIn = await isLoggedIn();
    if (!loggedIn) {
        console.log(pc.gray('You are not logged in.'));
        return;
    }
    await clearCredentials();
    console.log(pc.green('Logged out successfully.'));
    console.log(pc.gray('Your credentials have been removed.'));
}
//# sourceMappingURL=logout.js.map