Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ExportCmd represents the export command ExportCmd = &cobra.Command{ Use: "export", Short: "Export memos", Long: `Export memos from DocBase to local files.`, } // GroupCmd represents the export group command GroupCmd = &cobra.Command{ Use: "group [group_name]", Short: "Export memos from a group", Long: `Export memos from a group in DocBase to local files. Example: docbase export group "全員" docbase export group "開発" --output ./exports --format md`, Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { query := fmt.Sprintf("group:%s", args[0]) return runExport(cmd, query) }, } // TagCmd represents the export tag command TagCmd = &cobra.Command{ Use: "tag [tag_name]", Short: "Export memos with a tag", Long: `Export memos with a tag in DocBase to local files. Example: docbase export tag "週報" docbase export tag "開発" --output ./exports --format md`, Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { query := fmt.Sprintf("tag:%s", args[0]) return runExport(cmd, query) }, } )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.