(inv *serpent.Invocation)
| 1029 | } |
| 1030 | |
| 1031 | func (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 | |
| 1039 | func (o *OrganizationContext) Selected(inv *serpent.Invocation, client *codersdk.Client) (codersdk.Organization, error) { |
| 1040 | // Fetch the set of organizations the user is a member of. |