mirror of
https://github.com/go-shiori/shiori.git
synced 2025-01-30 11:51:57 +08:00
16 lines
348 B
Go
16 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
|
||
|
}
|