export

package
v0.0.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2026 License: MIT Imports: 13 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL