Merge pull request #987 from joshmedeski/better-ls
feat: remove cli list label and indentation
This commit is contained in:
commit
5012621721
@ -3,10 +3,11 @@ package db
|
|||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/samber/lo"
|
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"github.com/samber/lo"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Storage struct {
|
type Storage struct {
|
||||||
@ -69,9 +70,8 @@ func (o *Storage) ListNames() (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Printf("\n%v:\n", o.Label)
|
|
||||||
for _, item := range names {
|
for _, item := range names {
|
||||||
fmt.Printf("\t%s\n", item)
|
fmt.Printf("%s\n", item)
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user