remove vestigial httpclient struct member

This commit is contained in:
vilmibm 2020-08-05 12:02:51 -05:00
parent 2e7511cd18
commit da33b65d32

View file

@ -4,7 +4,6 @@ import (
"errors"
"fmt"
"io/ioutil"
"net/http"
"os"
"strings"
@ -21,9 +20,8 @@ import (
)
type LoginOptions struct {
HttpClient func() (*http.Client, error)
IO *iostreams.IOStreams
Config func() (config.Config, error)
IO *iostreams.IOStreams
Config func() (config.Config, error)
Hostname string
Token string
@ -32,9 +30,8 @@ type LoginOptions struct {
func NewCmdLogin(f *cmdutil.Factory, runF func(*LoginOptions) error) *cobra.Command {
opts := &LoginOptions{
HttpClient: f.HttpClient,
IO: f.IOStreams,
Config: f.Config,
IO: f.IOStreams,
Config: f.Config,
}
cmd := &cobra.Command{