diff --git a/src/cli/backup/exchange.go b/src/cli/backup/exchange.go index bc83cae1f..57582ceca 100644 --- a/src/cli/backup/exchange.go +++ b/src/cli/backup/exchange.go @@ -7,7 +7,6 @@ import ( "github.com/alcionai/corso/cli/config" "github.com/alcionai/corso/cli/options" - "github.com/alcionai/corso/cli/print" . "github.com/alcionai/corso/cli/print" "github.com/alcionai/corso/cli/utils" "github.com/alcionai/corso/pkg/logger" @@ -165,8 +164,8 @@ func createExchangeCmd(cmd *cobra.Command, args []string) error { if err != nil { return errors.Wrap(err, "Unable to retrieve backup results from storage") } - print.Backup(*bu) + OutputBackup(*bu) return nil } @@ -250,8 +249,7 @@ func listExchangeCmd(cmd *cobra.Command, args []string) error { return Only(errors.Wrap(err, "Failed to list backups in the repository")) } - print.Backups(rps) - + OutputBackups(rps) return nil } @@ -338,7 +336,7 @@ func detailsExchangeCmd(cmd *cobra.Command, args []string) error { return Only(errors.New("nothing to display: no items in the backup match the provided selectors")) } - print.Entries(ds.Entries) + OutputEntries(ds.Entries) return nil } diff --git a/src/cli/print/print.go b/src/cli/print/print.go index 2dbf440de..3e76223bb 100644 --- a/src/cli/print/print.go +++ b/src/cli/print/print.go @@ -111,12 +111,12 @@ func printAll(ps []Printable) { // ------------------------------------------------------------------------------------------ // Prints the backup to the terminal with stdout. -func Backup(b backup.Backup) { +func OutputBackup(b backup.Backup) { print(b) } // Prints the backups to the terminal with stdout. -func Backups(bs []backup.Backup) { +func OutputBackups(bs []backup.Backup) { ps := []Printable{} for _, b := range bs { ps = append(ps, b) @@ -125,7 +125,7 @@ func Backups(bs []backup.Backup) { } // Prints the entries to the terminal with stdout. -func Entries(des []details.DetailsEntry) { +func OutputEntries(des []details.DetailsEntry) { ps := []Printable{} for _, de := range des { ps = append(ps, de)