diff

package
v0.37.0 Latest Latest
Warning

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

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

Documentation

Overview

Package diff provides the polymorphic top-level `diff` command verb, with subcommands for comparing solutions, bundles, and snapshots.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommandDiff

func CommandDiff(cliParams *settings.Run, ioStreams *terminal.IOStreams, binaryName string) *cobra.Command

CommandDiff creates the top-level `diff` command group. It is a polymorphic verb whose subcommands compare different scafctl artifact kinds.

func CommandDiffBundle

func CommandDiffBundle(cliParams *settings.Run, ioStreams *terminal.IOStreams, binaryName string) *cobra.Command

CommandDiffBundle creates the `diff bundle` subcommand.

func CommandDiffSnapshot

func CommandDiffSnapshot(_ *settings.Run, ioStreams terminal.IOStreams, binaryName string) *cobra.Command

CommandDiffSnapshot creates the `diff snapshot` subcommand.

func CommandDiffSolution

func CommandDiffSolution(cliParams *settings.Run, ioStreams terminal.IOStreams, binaryName string) *cobra.Command

CommandDiffSolution creates the `diff solution` subcommand.

Types

type BundleDiffOptions

type BundleDiffOptions struct {
	RefA         string
	RefB         string
	FilesOnly    bool
	SolutionOnly bool
	Ignore       []string
	CliParams    *settings.Run
	IOStreams    *terminal.IOStreams

	flags.KvxOutputFlags
}

BundleDiffOptions holds options for the diff bundle command.

type FileDiffEntry

type FileDiffEntry = bundler.FileDiffEntry

Type aliases pointing to the domain types in the bundler package.

type FilesDiff

type FilesDiff = bundler.FilesDiff

Type aliases pointing to the domain types in the bundler package.

type PluginDiffEntry

type PluginDiffEntry = bundler.PluginDiffEntry

Type aliases pointing to the domain types in the bundler package.

type PluginsDiff

type PluginsDiff = bundler.PluginsDiff

Type aliases pointing to the domain types in the bundler package.

type SnapshotDiffOptions

type SnapshotDiffOptions struct {
	BeforeFile      string
	AfterFile       string
	Format          string
	IgnoreUnchanged bool
	IgnoreFields    []string
}

SnapshotDiffOptions holds options for the diff snapshot command.

type SolutionDiff

type SolutionDiff = bundler.SolutionDiff

Type aliases pointing to the domain types in the bundler package.

type SolutionDiffOptions

type SolutionDiffOptions struct {
	Files  []string
	Output string
}

SolutionDiffOptions holds options for the diff solution command.

type VendoredDiff

type VendoredDiff = bundler.VendoredDiff

Type aliases pointing to the domain types in the bundler package.

type VendoredEntry

type VendoredEntry = bundler.VendoredEntry

Type aliases pointing to the domain types in the bundler package.

type VendoredUpgrade

type VendoredUpgrade = bundler.VendoredUpgrade

Type aliases pointing to the domain types in the bundler package.

Jump to

Keyboard shortcuts

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