wfmigrate

package module
v0.0.0-...-876a57e Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2019 License: GPL-3.0 Imports: 1 Imported by: 1

README

wf-migrate

GoDoc

wf-migrate provides helper functions and a command-line utility for migrating posts between WriteFreely instances.

Command-line

Install the command-line utility with:

go get github.com/writeas/wf-migrate/cmd/wfimport

wfimport takes a username -u, optional WriteFreely instance hostname -h, and the filename of the JSON data you want to import.

By default, wfimport publishes posts to Write.as:

wfimport -u username exported-data.json

But you can also supply another WriteFreely instance to import to:

wfimport -u username -h pencil.writefree.ly exported-data.json

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePost

func CreatePost(cl *writeas.Client, p writeas.Post, collAlias string) (*writeas.Post, error)

CreatePost publishes a post from the given writeas.Post.

Types

type Import

type Import struct {
	writeas.User
	Collections []writeas.Collection `json:"collections"`
	Posts       []writeas.Post       `json:"posts"`
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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