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.
Click to show internal directories.
Click to hide internal directories.