shiori/internal/cmd/import.go

16 lines
348 B
Go
Raw Normal View History

2019-05-21 11:31:40 +08:00
package cmd
import "github.com/spf13/cobra"
func importCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "import source-file",
Short: "Import bookmarks from HTML file in Netscape Bookmark format",
Args: cobra.ExactArgs(1),
}
cmd.Flags().BoolP("generate-tag", "t", false, "Auto generate tag from bookmark's category")
return cmd
}