Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Db *gorm.DB Command = &cli.Command{ Name: "bookmarks", Usage: "将书签导出到文件中", Aliases: []string{"b"}, Flags: []cli.Flag{ &cli.StringFlag{ Name: "browser", Aliases: []string{"b"}, Required: true, Usage: "支持浏览器 chrome、edge 或 firefox", }, &cli.StringFlag{ Name: "type", Aliases: []string{"t"}, Value: "json", DefaultText: "json", Usage: "导出文件类型,支持:json、csv", Action: func(context *cli.Context, s string) error { flag := false for _, v := range items { if v == s { flag = true } } if flag == false { return fmt.Errorf("type [%s] not support", s) } return nil }, }, }, Action: Action, } )
Functions ¶
Types ¶
type BookmarkRoot ¶
type BookmarkRoot struct { Roots struct { BookmarkBar Bookmark `json:"bookmark_bar"` } `json:"roots"` }
type MozBookmarks ¶
Click to show internal directories.
Click to hide internal directories.