We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentb1ec463 commitabc0ff9Copy full SHA for abc0ff9
cli/root.go
@@ -29,7 +29,6 @@ import (
29
"golang.org/x/mod/semver"
30
"golang.org/x/xerrors"
31
32
-"github.com/coder/coder/v2/coderd/database/db2sdk"
33
"github.com/coder/pretty"
34
35
"github.com/coder/coder/v2/buildinfo"
@@ -659,9 +658,10 @@ func (o *OrganizationContext) Selected(inv *serpent.Invocation, client *codersdk
659
658
})
660
661
ifindex<0 {
662
-names:=db2sdk.List(orgs,func(f codersdk.Organization)string {
663
-returnf.Name
664
-})
+varnames []string
+for_,org:=rangeorgs {
+names=append(names,org.Name)
+}
665
return codersdk.Organization{},xerrors.Errorf("organization %q not found, are you sure you are a member of this organization? "+
666
"Valid options for '--org=' are [%s].",o.FlagSelect,strings.Join(names,", "))
667
}