Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmd/rm.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ func rm(cmd *cobra.Command, args []string) error {
return err
}

return commandOutput(cmd).Render(func(w io.Writer) error {
return renderOperation(cmd, nil, removeOperationResults(results), nil, func(w io.Writer) error {
if !opts.dryRun && !opts.verbose {
return nil
}
return renderRemoveResults(w, results)
}, newJSONCommandOperationOutput(cmd, nil, removeOperationResults(results), nil))
})
}

func removeOperationResults(results []removeResult) []jsonOperationResult {
Expand Down
4 changes: 2 additions & 2 deletions cmd/share_link_revoke.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func revokeSharedLinksForPath(cmd *cobra.Command, path string, dryRun bool) ([]s
}

func renderShareLinkRevokeOutput(cmd *cobra.Command, input shareLinkRevokeInput, results []jsonOperationResult) error {
return commandOutput(cmd).Render(func(w io.Writer) error {
return renderOperation(cmd, input, results, nil, func(w io.Writer) error {
if !input.DryRun {
return nil
}
Expand All @@ -191,7 +191,7 @@ func renderShareLinkRevokeOutput(cmd *cobra.Command, input shareLinkRevokeInput,
}
}
return nil
}, newJSONCommandOperationOutput(cmd, input, results, nil))
})
}

var shareLinkRevokeCmd = &cobra.Command{
Expand Down
Loading