MCPcopy Index your code
hub / github.com/coder/coder / ValueSource

Method ValueSource

cli/root.go:1031–1037  ·  view source on GitHub ↗
(inv *serpent.Invocation)

Source from the content-addressed store, hash-verified

1029}
1030
1031func (o *OrganizationContext) ValueSource(inv *serpent.Invocation) (string, serpent.ValueSource) {
1032 opt := inv.Command.Options.ByName(o.optionName())
1033 if opt == nil {
1034 return o.FlagSelect, serpent.ValueSourceNone
1035 }
1036 return o.FlagSelect, opt.ValueSource
1037}
1038
1039func (o *OrganizationContext) Selected(inv *serpent.Invocation, client *codersdk.Client) (codersdk.Organization, error) {
1040 // Fetch the set of organizations the user is a member of.

Callers 1

CreateMethod · 0.80

Calls 1

optionNameMethod · 0.95

Tested by

no test coverage detected