feat
- main chore - minor changes
This commit is contained in:
1 parent
213562956c
commit
e4737ca179
10 files changed
+89
-24
No files matched your search
+1
-1
@@ -1,8 +1,8 @@
|
||||
package cli
|
||||
|
||||
import (
|
||||
"github.com/abelith/spellbook/internal/models"
|
||||
"github.com/spf13/cobra"
|
||||
"spellbook/internal/models"
|
||||
"strings"
|
||||
)
|
||||
|
||||
|
||||
@@ -2,10 +2,10 @@ package cli
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/abelith/spellbook/internal/models"
|
||||
"github.com/olekukonko/tablewriter"
|
||||
"github.com/spf13/cobra"
|
||||
"os"
|
||||
"spellbook/internal/models"
|
||||
"strings"
|
||||
)
|
||||
|
||||
@@ -63,6 +63,7 @@ func listCommands(ctx context.Context, cmd *cobra.Command, app Application) erro
|
||||
|
||||
if len(spells) == 0 {
|
||||
cmd.Println("Spell book is empty. Try `spellbook add` to add your first spell")
|
||||
return nil
|
||||
}
|
||||
|
||||
return printTable(cmd, spells)
|
||||
|
||||
Reference in new issue
Block a user