cmd/oauth2.go
changeset 243 1bec7d3d6a85
parent 185 564d92b54b00
child 244 a01bc98ae01a
equal deleted inserted replaced
242:2a9ec03fe5a1 243:1bec7d3d6a85
    45 		RunE: func(cmd *cobra.Command, args []string) error {
    45 		RunE: func(cmd *cobra.Command, args []string) error {
    46 			return oAuth2GetURL()
    46 			return oAuth2GetURL()
    47 		},
    47 		},
    48 	},
    48 	},
    49 	&cobra.Command{
    49 	&cobra.Command{
    50 		Use:   "code",
    50 		Use:   "code CODE",
    51 		Short: "Log in with OAuth2 code",
    51 		Short: "Log in with OAuth2 code",
    52 		RunE: func(cmd *cobra.Command, args []string) error {
    52 		RunE: func(cmd *cobra.Command, args []string) error {
    53 			return oAuth2ExchangeCode(args)
    53 			return oAuth2ExchangeCode(args)
    54 		},
    54 		},
    55 	},
    55 	},