requesturl

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Commands = cli.Command{
	Name:        "request-url",
	Usage:       "Set the request URL for credential_process command (connection to Granted Approvals)",
	Subcommands: []*cli.Command{&setRequestURLCommand, &clearRequestURLCommand},
	Action: func(c *cli.Context) error {
		gConf, err := grantedConfig.Load()
		if err != nil {
			return errors.Wrap(err, "unable to load granted config")
		}

		if gConf.AccessRequestURL == "" {
			fmt.Println("Request URL is not configured. You can configure by using 'granted settings request-url set <YOUR_URL>'")

			return nil
		}

		fmt.Printf("The current request URL is '%s' \n", gConf.AccessRequestURL)
		fmt.Println("You can clear the value using 'granted settings request-url clear'")
		fmt.Println("Or you can reset to another value using 'granted settings request-url set <NEW_URL>'")
		return nil
	},
}

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