JSON CLI matching PHP ExportPosts/ImportPosts ships as HasCommands, and Posts toolbar actions reuse that logic behind access_import_export. Co-authored-by: Cursor <cursoragent@cursor.com>
20 lines
821 B
Go
20 lines
821 B
Go
package console
|
|
|
|
// ExportColumns is the Winter PostExport column set (table columns plus
|
|
// author_email, categories, featured_image_urls). The JSON CLI writes the
|
|
// ExportPosts.php document, not a CSV row; these names are the shared field
|
|
// list toolbar and CLI both read.
|
|
var ExportColumns = []string{
|
|
"id", "title", "slug", "excerpt", "content", "content_html",
|
|
"published", "published_at", "created_at", "updated_at",
|
|
"metadata", "sources", "author_email", "categories", "featured_image_urls",
|
|
}
|
|
|
|
// ImportColumns is the Winter PostImport column set. title, content, and slug
|
|
// are required. id, categories, and author_email are lookup keys, not host
|
|
// fillable columns.
|
|
var ImportColumns = []string{
|
|
"id", "title", "slug", "excerpt", "content",
|
|
"published", "published_at", "categories", "author_email",
|
|
}
|