mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: remove org context switcher in the cli (#13674)
* chore: remove org context switcher in the cli
This commit is contained in:
@@ -31,6 +31,7 @@ func (r *RootCmd) templateCreate() *serpent.Command {
|
||||
dormancyAutoDeletion time.Duration
|
||||
|
||||
uploadFlags templateUploadFlags
|
||||
orgContext = NewOrganizationContext()
|
||||
)
|
||||
client := new(codersdk.Client)
|
||||
cmd := &serpent.Command{
|
||||
@@ -68,7 +69,7 @@ func (r *RootCmd) templateCreate() *serpent.Command {
|
||||
}
|
||||
}
|
||||
|
||||
organization, err := CurrentOrganization(r, inv, client)
|
||||
organization, err := orgContext.Selected(inv, client)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user