Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "refresh <app>", Short: "Refresh ArgoCD Application (using the refresh annotation)", Aliases: []string{"r"}, Args: cobra.ExactArgs(1), Run: func(c *cobra.Command, args []string) { appName := args[0] refreshType := "normal" if FlagHard { refreshType = "hard" } wait := FlagTimeout if FlagNoWait { wait = 0 } err := argocd_utils.ArgoCDRefresh(c.Context(), FlagNamespace, appName, refreshType, wait) cobra.CheckErr(err) fmt.Printf("Application '%s' refreshed (%s)\n", appName, refreshType) }, }
View Source
var FlagHard bool
View Source
var FlagNamespace string
View Source
var FlagNoWait bool
View Source
var FlagTimeout time.Duration
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.