mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
chore: remove org context switcher in the cli (#13674)
* chore: remove org context switcher in the cli
This commit is contained in:
@@ -358,13 +358,6 @@ func (r *RootCmd) login() *serpent.Command {
|
||||
return xerrors.Errorf("write server url: %w", err)
|
||||
}
|
||||
|
||||
// If the current organization cannot be fetched, then reset the organization context.
|
||||
// Otherwise, organization cli commands will fail.
|
||||
_, err = CurrentOrganization(r, inv, client)
|
||||
if err != nil {
|
||||
_ = config.Organization().Delete()
|
||||
}
|
||||
|
||||
_, _ = fmt.Fprintf(inv.Stdout, Caret+"Welcome to Coder, %s! You're authenticated.\n", pretty.Sprint(cliui.DefaultStyles.Keyword, resp.Username))
|
||||
return nil
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user