mirror of
https://github.com/go-shiori/shiori.git
synced 2025-01-29 11:19:21 +08:00
15 lines
348 B
Go
15 lines
348 B
Go
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
|
|
}
|