core

package
v0.0.0-...-bf2d112 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Username is the username of the account to import to.
	Username string
	// DstBlog is the alias of the blog to import to.
	DstBlog string
	// InstanceURL is the fully qualified URL of the WriteFreely instance to import to.
	InstanceURL string
)
View Source
var Client *writeas.Client
View Source
var DefaultFlags = []cli.Flag{
	&cli.StringFlag{
		Name:        "user",
		Aliases:     []string{"u"},
		Usage:       "Username for the Write.as/WriteFreely account",
		Required:    true,
		Destination: &Username,
	},

	&cli.StringFlag{
		Name:        "blog",
		Aliases:     []string{"b"},
		Usage:       "Alias of the destination blog for importing your content.",
		Required:    true,
		Destination: &DstBlog,
	},

	&cli.StringFlag{
		Name:        "instance",
		Aliases:     []string{"i"},
		Usage:       "URL of your WriteFreely instance (e.g., '--instance https://pencil.writefree.ly')",
		Destination: &InstanceURL,
		DefaultText: "https://write.as",
	},
}

Functions

func SignIn

func SignIn(u, p, i string) error

func SignOut

func SignOut()

Types

This section is empty.

Jump to

Keyboard shortcuts

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