restore

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package restore provides terminal output functions for the restore command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RestoreDiff

func RestoreDiff(
	cmd *cobra.Command,
	dropped, restored, denyDropped, denyRestored []string,
)

RestoreDiff prints the permission diff block: dropped/restored allow and deny entries, or a note that only non-permission settings differ.

Parameters:

  • cmd: Cobra command for output. Nil is a no-op.
  • dropped: allow permissions removed.
  • restored: allow permissions added back.
  • denyDropped: deny rules removed.
  • denyRestored: deny rules added back.

func RestoreDone

func RestoreDone(cmd *cobra.Command)

RestoreDone prints the success message after restore.

Parameters:

  • cmd: Cobra command for output. Nil is a no-op.

func RestoreMatch

func RestoreMatch(cmd *cobra.Command)

RestoreMatch prints the message when settings already match golden.

Parameters:

  • cmd: Cobra command for output. Nil is a no-op.

func RestoreNoLocal

func RestoreNoLocal(cmd *cobra.Command)

RestoreNoLocal prints the message when golden is restored with no local file.

Parameters:

  • cmd: Cobra command for output. Nil is a no-op.

func SnapshotDone

func SnapshotDone(cmd *cobra.Command, updated bool, path string)

SnapshotDone prints the golden image save/update confirmation.

Parameters:

  • cmd: Cobra command for output. Nil is a no-op.
  • updated: true if golden already existed (update vs save).
  • path: golden file path.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL