wiki

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CmdWikiCreate = cli.Command{
	Name:        "create",
	Aliases:     []string{"c"},
	Usage:       "Create a wiki page",
	Description: "Create a wiki page",
	ArgsUsage:   " ",
	Action:      RunWikiCreate,
	Flags:       wikiWriteFlags,
}

CmdWikiCreate represents the create subcommand for wiki pages.

View Source
var CmdWikiDelete = cli.Command{
	Name:        "delete",
	Aliases:     []string{"rm"},
	Usage:       "Delete a wiki page",
	Description: "Delete a wiki page",
	ArgsUsage:   "<page>",
	Action:      RunWikiDelete,
	Flags:       append([]cli.Flag{wikiDeleteConfirmFlag}, flags.LoginRepoFlags...),
}

CmdWikiDelete represents the delete subcommand for wiki pages.

View Source
var CmdWikiEdit = cli.Command{
	Name:        "edit",
	Aliases:     []string{"e"},
	Usage:       "Edit a wiki page",
	Description: "Edit a wiki page",
	ArgsUsage:   "<page>",
	Action:      RunWikiEdit,
	Flags:       wikiWriteFlags,
}

CmdWikiEdit represents the edit subcommand for wiki pages.

View Source
var CmdWikiList = cli.Command{
	Name:        "list",
	Aliases:     []string{"ls"},
	Usage:       "List wiki pages of the repository",
	Description: "List wiki pages of the repository",
	ArgsUsage:   " ",
	Action:      RunWikiList,
	Flags: append([]cli.Flag{
		wikiFieldsFlag,
		&flags.PaginationPageFlag,
		&flags.PaginationLimitFlag,
	}, flags.AllDefaultFlags...),
}

CmdWikiList represents the list subcommand for wiki pages.

View Source
var CmdWikiRevisions = cli.Command{
	Name:        "revisions",
	Aliases:     []string{"history"},
	Usage:       "List revisions of a wiki page",
	Description: "List revisions of a wiki page",
	ArgsUsage:   "<page>",
	Action:      RunWikiRevisions,
	Flags: append([]cli.Flag{
		wikiRevisionFieldsFlag,
		&flags.PaginationPageFlag,
		&flags.PaginationLimitFlag,
	}, flags.AllDefaultFlags...),
}

CmdWikiRevisions represents the revisions subcommand for wiki pages.

View Source
var CmdWikiView = cli.Command{
	Name:        "view",
	Usage:       "View a wiki page",
	Description: "View a wiki page",
	ArgsUsage:   "<page>",
	Action:      RunWikiView,
	Flags:       append([]cli.Flag{}, flags.AllDefaultFlags...),
}

CmdWikiView represents the view subcommand for wiki pages.

Functions

func RunWikiCreate

func RunWikiCreate(_ stdctx.Context, cmd *cli.Command) error

RunWikiCreate creates a wiki page.

func RunWikiDelete

func RunWikiDelete(_ stdctx.Context, cmd *cli.Command) error

RunWikiDelete deletes a wiki page.

func RunWikiEdit

func RunWikiEdit(_ stdctx.Context, cmd *cli.Command) error

RunWikiEdit edits a wiki page.

func RunWikiList

func RunWikiList(_ stdctx.Context, cmd *cli.Command) error

RunWikiList lists wiki pages.

func RunWikiRevisions

func RunWikiRevisions(_ stdctx.Context, cmd *cli.Command) error

RunWikiRevisions lists revisions of a wiki page.

func RunWikiView

func RunWikiView(_ stdctx.Context, cmd *cli.Command) error

RunWikiView shows a wiki page.

Types

This section is empty.

Jump to

Keyboard shortcuts

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