(opts *ViewOptions, proxyID string)
| 73 | } |
| 74 | |
| 75 | func ContributeProxy(opts *ViewOptions, proxyID string) ([]*output.DataRow, error) { |
| 76 | if proxyID != "" { |
| 77 | proxy, err := opts.Client.Proxies.GetById(proxyID) |
| 78 | if err != nil { |
| 79 | return nil, err |
| 80 | } |
| 81 | return []*output.DataRow{output.NewDataRow("Proxy", proxy.GetName())}, nil |
| 82 | } |
| 83 | |
| 84 | return []*output.DataRow{output.NewDataRow("Proxy", "None")}, nil |
| 85 | } |
| 86 | |
| 87 | func ContributeAccount(opts *ViewOptions, accountID string) ([]*output.DataRow, error) { |
| 88 | account, err := opts.Client.Accounts.GetByID(accountID) |
no test coverage detected