MCPcopy Index your code
hub / github.com/cloudfoundry/cli / showManifestDiff

Method showManifestDiff

command/v7/push_command.go:785–806  ·  view source on GitHub ↗
(spaceGUID string, transformedRawFinalManifest []byte)

Source from the content-addressed store, hash-verified

783}
784
785func (cmd PushCommand) showManifestDiff(spaceGUID string, transformedRawFinalManifest []byte) error {
786 diff, warnings, err := cmd.Actor.DiffSpaceManifest(spaceGUID, transformedRawFinalManifest)
787
788 cmd.UI.DisplayWarnings(warnings)
789 if err != nil {
790 if _, isUnexpectedError := err.(ccerror.V3UnexpectedResponseError); isUnexpectedError {
791 cmd.UI.DisplayWarning("Unable to generate diff. Continuing to apply manifest...")
792 } else {
793 return err
794 }
795 } else {
796 cmd.UI.DisplayNewline()
797 cmd.UI.DisplayText("Updating with these attributes...")
798
799 err = cmd.DiffDisplayer.DisplayDiff(transformedRawFinalManifest, diff)
800 if err != nil {
801 return err
802 }
803 }
804
805 return nil
806}

Callers 1

ExecuteMethod · 0.95

Calls 6

DiffSpaceManifestMethod · 0.65
DisplayWarningsMethod · 0.65
DisplayWarningMethod · 0.65
DisplayNewlineMethod · 0.65
DisplayTextMethod · 0.65
DisplayDiffMethod · 0.65

Tested by

no test coverage detected