Adds the standard -o/--output flag to 'helm push' so the pushed
reference and manifest digest can be consumed programmatically
(e.g. to sign the chart with cosign).
The push result is plumbed from the OCI registry client to the CLI
through a new, purely additive functional option
(pusher.WithPushResultHandler / action.WithPushResultHandler), so no
public Go SDK signatures change (HIP-0004). The default table output
is byte-for-byte identical to the previous behavior; for json/yaml
the registry client's human-readable summary is suppressed so stdout
contains only the structured result.
Closes#11735
Signed-off-by: Jojin <jojin.kb@gmail.com>
require.True(t,ok,"expected NewOCIPusher to produce an *OCIPusher")
assert.Equal(t,registryClient,op.opts.registryClient,"Expected NewOCIPusher to contain %p as RegistryClient, got %p",registryClient,op.opts.registryClient)
// Test if setting pushResultHandler is being passed to the ops