connect

package
v0.0.0-...-e5adc05 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2017 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:   "connect",
	Short: "Domain commands: ovhcli connect",
	Long:  `Domain commands: ovhcli connect`,
	Run: func(cmd *cobra.Command, args []string) {

		c, err := ovh.NewDefaultClient()
		common.Check(err)

		ckReq := c.NewCkRequest()

		ckReq.AddRules(ovh.ReadWrite, "/*")

		response, err := ckReq.Do()
		common.Check(err)

		fmt.Printf("Please visit %s to complete your login\n", response.ValidationURL)

		if err = writeConsumerKey(response.ConsumerKey); err != nil {
			common.Check(err)
		}
	},
}

Cmd domain

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL