Skip to content

Commit

Permalink
Rename the objectaction.WithFormat func to WithOutput
Browse files Browse the repository at this point in the history
  • Loading branch information
cvaroqui committed Sep 15, 2023
1 parent 56c399f commit ca00acb
Show file tree
Hide file tree
Showing 63 changed files with 86 additions and 71 deletions.
12 changes: 9 additions & 3 deletions core/actionrouter/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,19 @@ type (
Watch bool

//
// Format controls the output data format.
// Output controls the output data format.
// <empty> => human readable format
// tab=... => tubular customizable format
// yaml => yaml machine readable format
// json => json machine readable format
// flat => flattened json (<k>=<v>) machine readable format
// flat_json => same as flat (backward compat)
//
Format string
Output string

// DefaultOutput defines a default output to use when Output is
// not specified.
DefaultOutput string

//
// Color activates the colorization of outputs
Expand Down Expand Up @@ -164,7 +170,7 @@ func Do(t Actioner) error {
if o.Watch {
m := monitor.New()
m.SetColor(o.Color)
m.SetFormat(o.Format)
m.SetFormat(o.Output)
m.SetSelector(o.ObjectSelector)
cli, e := client.New(client.WithURL(o.Server), client.WithTimeout(0))
if e != nil {
Expand Down
2 changes: 1 addition & 1 deletion core/commands/keystore_add.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (t *CmdKeystoreAdd) Run(selector, kind string) error {
objectaction.LocalFirst(),
objectaction.WithLocal(t.Local),
objectaction.WithColor(t.Color),
objectaction.WithFormat(t.Output),
objectaction.WithOutput(t.Output),
objectaction.WithObjectSelector(mergedSelector),
objectaction.WithRemoteNodes(t.NodeSelector),
objectaction.WithRemoteAction("add"),
Expand Down
2 changes: 1 addition & 1 deletion core/commands/keystore_change.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func (t *CmdKeystoreChange) Run(selector, kind string) error {
objectaction.LocalFirst(),
objectaction.WithLocal(t.Local),
objectaction.WithColor(t.Color),
objectaction.WithFormat(t.Output),
objectaction.WithOutput(t.Output),
objectaction.WithObjectSelector(mergedSelector),
objectaction.WithRemoteNodes(t.NodeSelector),
objectaction.WithRemoteAction("change"),
Expand Down
2 changes: 1 addition & 1 deletion core/commands/keystore_decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func (t *CmdKeystoreDecode) Run(selector, kind string) error {
objectaction.LocalFirst(),
objectaction.WithLocal(t.Local),
objectaction.WithColor(t.Color),
objectaction.WithFormat(t.Output),
objectaction.WithOutput(t.Output),
objectaction.WithObjectSelector(mergedSelector),
objectaction.WithRemoteNodes(t.NodeSelector),
objectaction.WithRemoteAction("decode"),
Expand Down
2 changes: 1 addition & 1 deletion core/commands/keystore_gencert.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func (t *CmdSecGenCert) Run(selector, kind string) error {
objectaction.LocalFirst(),
objectaction.WithLocal(t.Local),
objectaction.WithColor(t.Color),
objectaction.WithFormat(t.Output),
objectaction.WithOutput(t.Output),
objectaction.WithObjectSelector(mergedSelector),
objectaction.WithRemoteNodes(t.NodeSelector),
objectaction.WithRemoteAction("gencert"),
Expand Down
2 changes: 1 addition & 1 deletion core/commands/keystore_install.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func (t *CmdKeystoreInstall) Run(selector, kind string) error {
objectaction.LocalFirst(),
objectaction.WithLocal(t.Local),
objectaction.WithColor(t.Color),
objectaction.WithFormat(t.Output),
objectaction.WithOutput(t.Output),
objectaction.WithObjectSelector(mergedSelector),
objectaction.WithRemoteNodes(t.NodeSelector),
objectaction.WithRemoteAction("install"),
Expand Down
2 changes: 1 addition & 1 deletion core/commands/keystore_keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func (t *CmdKeystoreKeys) Run(selector, kind string) error {
objectaction.LocalFirst(),
objectaction.WithLocal(t.Local),
objectaction.WithColor(t.Color),
objectaction.WithFormat(t.Output),
objectaction.WithOutput(t.Output),
objectaction.WithObjectSelector(mergedSelector),
objectaction.WithRemoteNodes(t.NodeSelector),
objectaction.WithRemoteAction("keys"),
Expand Down
2 changes: 1 addition & 1 deletion core/commands/keystore_pkcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func (t *CmdPKCS) Run(selector, kind string) error {
objectaction.LocalFirst(),
objectaction.WithLocal(t.Local),
objectaction.WithColor(t.Color),
objectaction.WithFormat(t.Output),
objectaction.WithOutput(t.Output),
objectaction.WithObjectSelector(mergedSelector),
objectaction.WithRemoteNodes(t.NodeSelector),
objectaction.WithRemoteAction("pkcs"),
Expand Down
2 changes: 1 addition & 1 deletion core/commands/keystore_remove.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func (t *CmdKeystoreRemove) Run(selector, kind string) error {
objectaction.LocalFirst(),
objectaction.WithLocal(t.Local),
objectaction.WithColor(t.Color),
objectaction.WithFormat(t.Output),
objectaction.WithOutput(t.Output),
objectaction.WithObjectSelector(mergedSelector),
objectaction.WithRemoteNodes(t.NodeSelector),
objectaction.WithRemoteAction("keys"),
Expand Down
2 changes: 1 addition & 1 deletion core/commands/object_abort.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func (t *CmdObjectAbort) Run(selector, kind string) error {
return objectaction.New(
objectaction.WithObjectSelector(mergedSelector),
objectaction.WithLocal(t.Local),
objectaction.WithFormat(t.Output),
objectaction.WithOutput(t.Output),
objectaction.WithColor(t.Color),
objectaction.WithAsyncTarget("aborted"),
objectaction.WithAsyncTime(t.Time),
Expand Down
2 changes: 1 addition & 1 deletion core/commands/object_boot.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func (t *CmdObjectBoot) Run(selector, kind string) error {
objectaction.LocalFirst(),
objectaction.WithLocal(t.Local),
objectaction.WithColor(t.Color),
objectaction.WithFormat(t.Output),
objectaction.WithOutput(t.Output),
objectaction.WithObjectSelector(mergedSelector),
objectaction.WithRemoteNodes(t.NodeSelector),
objectaction.WithRemoteAction("boot"),
Expand Down
2 changes: 1 addition & 1 deletion core/commands/object_collector_tag_attach.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func (t *CmdObjectCollectorTagAttach) Run(selector, kind string) error {
objectaction.LocalFirst(),
objectaction.WithObjectSelector(mergedSelector),
objectaction.WithLocal(t.Local),
objectaction.WithFormat(t.Output),
objectaction.WithOutput(t.Output),
objectaction.WithColor(t.Color),
objectaction.WithLocalRun(func(ctx context.Context, p path.T) (interface{}, error) {
n, err := object.NewNode()
Expand Down
2 changes: 1 addition & 1 deletion core/commands/object_collector_tag_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (t *CmdObjectCollectorTagCreate) Run(selector, kind string) error {
objectaction.LocalFirst(),
objectaction.WithObjectSelector(mergedSelector),
objectaction.WithLocal(t.Local),
objectaction.WithFormat(t.Output),
objectaction.WithOutput(t.Output),
objectaction.WithColor(t.Color),
objectaction.WithLocalRun(func(ctx context.Context, p path.T) (interface{}, error) {
n, err := object.NewNode()
Expand Down
2 changes: 1 addition & 1 deletion core/commands/object_collector_tag_detach.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func (t *CmdObjectCollectorTagDetach) Run(selector, kind string) error {
objectaction.LocalFirst(),
objectaction.WithObjectSelector(mergedSelector),
objectaction.WithLocal(t.Local),
objectaction.WithFormat(t.Output),
objectaction.WithOutput(t.Output),
objectaction.WithColor(t.Color),
objectaction.WithLocalRun(func(ctx context.Context, p path.T) (interface{}, error) {
n, err := object.NewNode()
Expand Down
2 changes: 1 addition & 1 deletion core/commands/object_collector_tag_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func (t *CmdObjectCollectorTagList) Run(selector, kind string) error {
objectaction.LocalFirst(),
objectaction.WithObjectSelector(mergedSelector),
objectaction.WithLocal(t.Local),
objectaction.WithFormat(t.Output),
objectaction.WithOutput(t.Output),
objectaction.WithColor(t.Color),
objectaction.WithLocalRun(func(ctx context.Context, p path.T) (interface{}, error) {
n, err := object.NewNode()
Expand Down
2 changes: 1 addition & 1 deletion core/commands/object_collector_tag_show.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func (t *CmdObjectCollectorTagShow) Run(selector, kind string) error {
objectaction.LocalFirst(),
objectaction.WithObjectSelector(mergedSelector),
objectaction.WithLocal(t.Local),
objectaction.WithFormat(t.Output),
objectaction.WithOutput(t.Output),
objectaction.WithColor(t.Color),
objectaction.WithLocalRun(func(ctx context.Context, p path.T) (interface{}, error) {
n, err := object.NewNode()
Expand Down
2 changes: 1 addition & 1 deletion core/commands/object_compliance_attach_moduleset.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func (t *CmdObjectComplianceAttachModuleset) Run(selector, kind string) error {
objectaction.LocalFirst(),
objectaction.WithLocal(t.Local),
objectaction.WithColor(t.Color),
objectaction.WithFormat(t.Output),
objectaction.WithOutput(t.Output),
objectaction.WithObjectSelector(mergedSelector),
objectaction.WithRemoteNodes(t.NodeSelector),
objectaction.WithServer(t.Server),
Expand Down
2 changes: 1 addition & 1 deletion core/commands/object_compliance_attach_ruleset.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func (t *CmdObjectComplianceAttachRuleset) Run(selector, kind string) error {
objectaction.LocalFirst(),
objectaction.WithLocal(t.Local),
objectaction.WithColor(t.Color),
objectaction.WithFormat(t.Output),
objectaction.WithOutput(t.Output),
objectaction.WithObjectSelector(mergedSelector),
objectaction.WithRemoteNodes(t.NodeSelector),
objectaction.WithServer(t.Server),
Expand Down
2 changes: 1 addition & 1 deletion core/commands/object_compliance_auto.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (t *CmdObjectComplianceAuto) Run(selector, kind string) error {
objectaction.LocalFirst(),
objectaction.WithLocal(t.Local),
objectaction.WithColor(t.Color),
objectaction.WithFormat(t.Output),
objectaction.WithOutput(t.Output),
objectaction.WithObjectSelector(mergedSelector),
objectaction.WithRemoteNodes(t.NodeSelector),
objectaction.WithServer(t.Server),
Expand Down
2 changes: 1 addition & 1 deletion core/commands/object_compliance_check.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (t *CmdObjectComplianceCheck) Run(selector, kind string) error {
objectaction.LocalFirst(),
objectaction.WithLocal(t.Local),
objectaction.WithColor(t.Color),
objectaction.WithFormat(t.Output),
objectaction.WithOutput(t.Output),
objectaction.WithObjectSelector(mergedSelector),
objectaction.WithRemoteNodes(t.NodeSelector),
objectaction.WithServer(t.Server),
Expand Down
2 changes: 1 addition & 1 deletion core/commands/object_compliance_detach_moduleset.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func (t *CmdObjectComplianceDetachModuleset) Run(selector, kind string) error {
objectaction.LocalFirst(),
objectaction.WithLocal(t.Local),
objectaction.WithColor(t.Color),
objectaction.WithFormat(t.Output),
objectaction.WithOutput(t.Output),
objectaction.WithObjectSelector(mergedSelector),
objectaction.WithRemoteNodes(t.NodeSelector),
objectaction.WithServer(t.Server),
Expand Down
2 changes: 1 addition & 1 deletion core/commands/object_compliance_detach_ruleset.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func (t *CmdObjectComplianceDetachRuleset) Run(selector, kind string) error {
objectaction.LocalFirst(),
objectaction.WithLocal(t.Local),
objectaction.WithColor(t.Color),
objectaction.WithFormat(t.Output),
objectaction.WithOutput(t.Output),
objectaction.WithObjectSelector(mergedSelector),
objectaction.WithRemoteNodes(t.NodeSelector),
objectaction.WithServer(t.Server),
Expand Down
2 changes: 1 addition & 1 deletion core/commands/object_compliance_env.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func (t *CmdObjectComplianceEnv) Run(selector, kind string) error {
objectaction.LocalFirst(),
objectaction.WithLocal(t.Local),
objectaction.WithColor(t.Color),
objectaction.WithFormat(t.Output),
objectaction.WithOutput(t.Output),
objectaction.WithObjectSelector(mergedSelector),
objectaction.WithRemoteNodes(t.NodeSelector),
objectaction.WithServer(t.Server),
Expand Down
2 changes: 1 addition & 1 deletion core/commands/object_compliance_fix.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (t *CmdObjectComplianceFix) Run(selector, kind string) error {
objectaction.LocalFirst(),
objectaction.WithLocal(t.Local),
objectaction.WithColor(t.Color),
objectaction.WithFormat(t.Output),
objectaction.WithOutput(t.Output),
objectaction.WithObjectSelector(mergedSelector),
objectaction.WithRemoteNodes(t.NodeSelector),
objectaction.WithServer(t.Server),
Expand Down
2 changes: 1 addition & 1 deletion core/commands/object_compliance_fixable.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (t *CmdObjectComplianceFixable) Run(selector, kind string) error {
objectaction.LocalFirst(),
objectaction.WithLocal(t.Local),
objectaction.WithColor(t.Color),
objectaction.WithFormat(t.Output),
objectaction.WithOutput(t.Output),
objectaction.WithObjectSelector(mergedSelector),
objectaction.WithRemoteNodes(t.NodeSelector),
objectaction.WithServer(t.Server),
Expand Down
2 changes: 1 addition & 1 deletion core/commands/object_compliance_list_modules.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func (t *CmdObjectComplianceListModules) Run(selector, kind string) error {
objectaction.LocalFirst(),
objectaction.WithLocal(t.Local),
objectaction.WithColor(t.Color),
objectaction.WithFormat(t.Output),
objectaction.WithOutput(t.Output),
objectaction.WithObjectSelector(mergedSelector),
objectaction.WithRemoteNodes(t.NodeSelector),
objectaction.WithServer(t.Server),
Expand Down
2 changes: 1 addition & 1 deletion core/commands/object_compliance_list_moduleset.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func (t *CmdObjectComplianceListModuleset) Run(selector, kind string) error {
objectaction.LocalFirst(),
objectaction.WithLocal(t.Local),
objectaction.WithColor(t.Color),
objectaction.WithFormat(t.Output),
objectaction.WithOutput(t.Output),
objectaction.WithObjectSelector(mergedSelector),
objectaction.WithRemoteNodes(t.NodeSelector),
objectaction.WithServer(t.Server),
Expand Down
2 changes: 1 addition & 1 deletion core/commands/object_compliance_list_ruleset.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func (t *CmdObjectComplianceListRuleset) Run(selector, kind string) error {
objectaction.LocalFirst(),
objectaction.WithLocal(t.Local),
objectaction.WithColor(t.Color),
objectaction.WithFormat(t.Output),
objectaction.WithOutput(t.Output),
objectaction.WithObjectSelector(mergedSelector),
objectaction.WithRemoteNodes(t.NodeSelector),
objectaction.WithServer(t.Server),
Expand Down
2 changes: 1 addition & 1 deletion core/commands/object_compliance_show_moduleset.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func (t *CmdObjectComplianceShowModuleset) Run(selector, kind string) error {
objectaction.LocalFirst(),
objectaction.WithLocal(t.Local),
objectaction.WithColor(t.Color),
objectaction.WithFormat(t.Output),
objectaction.WithOutput(t.Output),
objectaction.WithObjectSelector(mergedSelector),
objectaction.WithRemoteNodes(t.NodeSelector),
objectaction.WithServer(t.Server),
Expand Down
2 changes: 1 addition & 1 deletion core/commands/object_compliance_show_ruleset.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func (t *CmdObjectComplianceShowRuleset) Run(selector, kind string) error {
objectaction.LocalFirst(),
objectaction.WithLocal(t.Local),
objectaction.WithColor(t.Color),
objectaction.WithFormat(t.Output),
objectaction.WithOutput(t.Output),
objectaction.WithObjectSelector(mergedSelector),
objectaction.WithRemoteNodes(t.NodeSelector),
objectaction.WithServer(t.Server),
Expand Down
2 changes: 1 addition & 1 deletion core/commands/object_delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func (t *CmdObjectDelete) Run(selector, kind string) error {
return objectaction.New(
objectaction.WithLocal(t.Local),
objectaction.WithColor(t.Color),
objectaction.WithFormat(t.Output),
objectaction.WithOutput(t.Output),
objectaction.WithObjectSelector(mergedSelector),
objectaction.WithRemoteNodes(t.NodeSelector),
objectaction.WithRemoteAction("delete"),
Expand Down
2 changes: 1 addition & 1 deletion core/commands/object_doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func (t *CmdObjectDoc) Run(selector, kind string) error {
objectaction.LocalFirst(),
objectaction.WithLocal(t.Local),
objectaction.WithColor(t.Color),
objectaction.WithFormat(t.Output),
objectaction.WithOutput(t.Output),
objectaction.WithObjectSelector(mergedSelector),
objectaction.WithRemoteNodes(t.NodeSelector),
objectaction.WithRemoteAction("doc"),
Expand Down
2 changes: 1 addition & 1 deletion core/commands/object_eval.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func (t *CmdObjectEval) Run(selector, kind string) error {
objectaction.LocalFirst(),
objectaction.WithLocal(t.Local),
objectaction.WithColor(t.Color),
objectaction.WithFormat(t.Output),
objectaction.WithOutput(t.Output),
objectaction.WithObjectSelector(mergedSelector),
objectaction.WithRemoteNodes(t.NodeSelector),
objectaction.WithRemoteAction("eval"),
Expand Down
2 changes: 1 addition & 1 deletion core/commands/object_freeze.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func (t *CmdObjectFreeze) Run(selector, kind string) error {
return objectaction.New(
objectaction.WithLocal(t.Local),
objectaction.WithObjectSelector(mergedSelector),
objectaction.WithFormat(t.Output),
objectaction.WithOutput(t.Output),
objectaction.WithColor(t.Color),
objectaction.WithServer(t.Server),
objectaction.WithAsyncTarget("frozen"),
Expand Down
2 changes: 1 addition & 1 deletion core/commands/object_get.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func (t *CmdObjectGet) Run(selector, kind string) error {
objectaction.LocalFirst(),
objectaction.WithLocal(t.Local),
objectaction.WithColor(t.Color),
objectaction.WithFormat(t.Output),
objectaction.WithOutput(t.Output),
objectaction.WithObjectSelector(mergedSelector),
objectaction.WithRemoteNodes(t.NodeSelector),
objectaction.WithRemoteAction("get"),
Expand Down
2 changes: 1 addition & 1 deletion core/commands/object_giveback.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func (t *CmdObjectGiveback) Run(selector, kind string) error {
return objectaction.New(
objectaction.WithObjectSelector(mergedSelector),
objectaction.WithLocal(t.Local),
objectaction.WithFormat(t.Output),
objectaction.WithOutput(t.Output),
objectaction.WithColor(t.Color),
objectaction.WithAsyncTarget("placed"),
objectaction.WithAsyncTime(t.Time),
Expand Down
2 changes: 1 addition & 1 deletion core/commands/object_print_config_mtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func (t *CmdObjectPrintConfigMtime) Run(selector, kind string) error {
objectaction.LocalFirst(),
objectaction.WithObjectSelector(mergedSelector),
objectaction.WithLocal(t.Local),
objectaction.WithFormat(t.Output),
objectaction.WithOutput(t.Output),
objectaction.WithColor(t.Color),
objectaction.WithRemoteNodes(t.NodeSelector),
objectaction.WithRemoteAction("print_config_mtime"),
Expand Down
2 changes: 1 addition & 1 deletion core/commands/object_provision.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func (t *CmdObjectProvision) Run(selector, kind string) error {
objectaction.WithTag(t.Tag),
objectaction.WithSubset(t.Subset),
objectaction.WithLocal(t.Local),
objectaction.WithFormat(t.Output),
objectaction.WithOutput(t.Output),
objectaction.WithColor(t.Color),
objectaction.WithRemoteNodes(t.NodeSelector),
objectaction.WithRemoteAction("provision"),
Expand Down
2 changes: 1 addition & 1 deletion core/commands/object_prstart.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func (t *CmdObjectPRStart) Run(selector, kind string) error {
objectaction.WithTag(t.Tag),
objectaction.WithSubset(t.Subset),
objectaction.WithLocal(true),
objectaction.WithFormat(t.Output),
objectaction.WithOutput(t.Output),
objectaction.WithColor(t.Color),
objectaction.WithRemoteNodes(t.NodeSelector),
objectaction.WithRemoteAction("prstart"),
Expand Down
2 changes: 1 addition & 1 deletion core/commands/object_prstop.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func (t *CmdObjectPRStop) Run(selector, kind string) error {
objectaction.WithTag(t.Tag),
objectaction.WithSubset(t.Subset),
objectaction.WithLocal(true),
objectaction.WithFormat(t.Output),
objectaction.WithOutput(t.Output),
objectaction.WithColor(t.Color),
objectaction.WithRemoteNodes(t.NodeSelector),
objectaction.WithRemoteAction("prstop"),
Expand Down
2 changes: 1 addition & 1 deletion core/commands/object_purge.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func (t *CmdObjectPurge) Run(selector, kind string) error {
objectaction.WithTag(t.Tag),
objectaction.WithSubset(t.Subset),
objectaction.WithLocal(t.Local),
objectaction.WithFormat(t.Output),
objectaction.WithOutput(t.Output),
objectaction.WithColor(t.Color),
objectaction.WithRemoteNodes(t.NodeSelector),
objectaction.WithRemoteAction("purge"),
Expand Down
2 changes: 1 addition & 1 deletion core/commands/object_push_resinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func (t *CmdObjectPushResInfo) Run(selector, kind string) error {
objectaction.WithTag(t.Tag),
objectaction.WithSubset(t.Subset),
objectaction.WithLocal(true),
objectaction.WithFormat(t.Output),
objectaction.WithOutput(t.Output),
objectaction.WithColor(t.Color),
objectaction.WithRemoteNodes(t.NodeSelector),
objectaction.WithRemoteAction("push resinfo"),
Expand Down
Loading

0 comments on commit ca00acb

Please sign in to comment.