preferences

package
v1.125.2 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CleanCmd = &cobra.Command{
	Use:   "remove",
	Short: "Remove preferences file from the home dir",
	Long:  "Remove preferences file from the home dir",
	RunE: func(cmd *cobra.Command, args []string) (err error) {
		return apiclient.DeletePreferencesFile()
	},
}

CleanCmd to get org details

View Source
var Cmd = &cobra.Command{
	Use:     "preferences",
	Aliases: []string{"prefs"},
	Short:   "Manage apigeecli preferences",
	Long:    "Manage apigeecli preferences",
}

Cmd to manage preferences

View Source
var GetCmd = &cobra.Command{
	Use:   "get",
	Short: "Get preferences for apigeecli",
	Long:  "Get preferences for apigeecli",
	RunE: func(cmd *cobra.Command, args []string) (err error) {
		err = apiclient.GetPreferences()
		return err
	},
}

GetCmd to get org details

View Source
var SetCmd = &cobra.Command{
	Use:   "set",
	Short: "Set default preferences for apigeecli",
	Long:  "Set default preferences for apigeecli",
	RunE: func(cmd *cobra.Command, args []string) (err error) {
		if err = apiclient.WriteDefaultOrg(org); err != nil {
			return err
		}

		if err = apiclient.SetProxy(proxyURL); err != nil {
			return err
		}

		if err = apiclient.SetGithubURL(gitHubURL); err != nil {
			return err
		}

		if nocheck {
			if err = apiclient.SetNoCheck(nocheck); err != nil {
				return err
			}
		}

		return apiclient.SetStaging(usestage)
	},
}

SetCmd to get org details

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