func ConfirmDialogue(ctx *cli.Context, labelOverride, warningOverride *string) error {
	preferences, err := prefs.NewPreferences(true)
	if err != nil {
		return err
	}
	if ctx.Bool("yes") || preferences.Core.AutoConfirm {
		return nil
	}

	label := "Do you wish to continue"
	if labelOverride != nil {
		label = *labelOverride
	}

	warning := "The action you are about to perform cannot be undone."
	if warningOverride != nil {
		warning = *warningOverride
	}

	prompt := promptui.Prompt{
		Label:     label,
		IsConfirm: true,
		Preamble:  &warning,
	}

	_, err = prompt.Run()
	return err
}
// ConfirmDialogue prompts the user to confirm their action
ConfirmDialogue prompts the user to confirm their action
// ConfirmDialogue prompts the user to confirm their action
func ConfirmDialogue(ctx *cli.Context, labelOverride, warningOverride *string) error {
	preferences, err := prefs.NewPreferences(true)
	if err != nil {
		return err
	}
	if ctx.Bool("yes") || preferences.Core.AutoConfirm {
		return nil
	}
	label := "Do you wish to continue"
	if labelOverride != nil {
		label = *labelOverride
	}
	warning := "The action you are about to perform cannot be undone."
	if warningOverride != nil {
		warning = *warningOverride
	}
	prompt := promptui.Prompt{
		Label:     label,
		IsConfirm: true,
		Preamble:  &warning,
	}
	_, err = prompt.Run()
	return err
}
func ConfirmDialogue ( ctx * cli . Context , labelOverride , warningOverride * string ) error { preferences , err := prefs . NewPreferences ( true ) if err != nil { return err } if ctx . Bool ( " " ) || preferences . Core . AutoConfirm { return nil } label := " " if labelOverride != nil { label = * labelOverride } warning := " " if warningOverride != nil { warning = * warningOverride } prompt := promptui . Prompt { Label : label , IsConfirm : true , Preamble : & warning , } _ , err = prompt . Run ( ) return err }
ConfirmDialogue prompts the user to confirm their action
ConfirmDialogue prompts the user to confirm their action