fix: deduplicate branches in the CLI list command
Description
If a pool contains multiple datasets, each has a "main" branch.
Therefore, the list command returns all these branches in the CLI. For example,
$ dblab branch
* main
* main
The MR removes duplicates and returns only unique branch names.
$ dblab branch
* main
Related issue
Examples
Checklist
-
MR description has been reviewed -
MR changes are functionally tested -
MR does NOT have API/CLI changes OR there are API/CLI changes and they have been reviewed & DOCS ARE ADJUSTED (reference doc, etc) -
MR does NOT have UI changes OR there are UI changes and they have been reviewed & UX IS REVIEWED