feat: improve auth login by adding context selection immediately after logging in
This commit is contained in:
@@ -14,6 +14,7 @@ import {
|
||||
type AuthCredentials
|
||||
} from '@tm/core/auth';
|
||||
import * as ui from '../utils/ui.js';
|
||||
import { ContextCommand } from './context.command.js';
|
||||
|
||||
/**
|
||||
* Result type from auth command
|
||||
@@ -351,6 +352,11 @@ export class AuthCommand extends Command {
|
||||
chalk.gray(` Logged in as: ${credentials.email || credentials.userId}`)
|
||||
);
|
||||
|
||||
// Post-auth: Set up workspace context
|
||||
console.log(); // Add spacing
|
||||
const contextCommand = new ContextCommand();
|
||||
await contextCommand.setupContextInteractive();
|
||||
|
||||
return {
|
||||
success: true,
|
||||
action: 'login',
|
||||
|
||||
Reference in New Issue
Block a user