We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bbf91ca + be0ed71 commit cac4995Copy full SHA for cac4995
1 file changed
internal/cmd/db_import.go
@@ -1,6 +1,7 @@
1
package cmd
2
3
import (
4
+ "fmt"
5
"path/filepath"
6
"strings"
7
@@ -22,6 +23,9 @@ var importCmd = &cobra.Command{
22
23
},
24
RunE: func(cmd *cobra.Command, args []string) error {
25
cmd.SilenceUsage = true
26
+ if len(args) == 0 {
27
+ return fmt.Errorf("filename is required: 'turso db import <filename>'")
28
+ }
29
filename := args[0]
30
fromFileFlag = filename
31
name := sanitizeDatabaseName(filename)
0 commit comments