mediawiki

package
v0.0.0-...-e1fd696 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package mediawiki is used to interact with MediaWiki

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfInCoreDirectory

func CheckIfInCoreDirectory()

CheckIfInCoreDirectory checks that the current working directory looks like a MediaWiki directory

Types

type CloneSetupOpts

type CloneSetupOpts = struct {
	GetMediaWiki          bool
	GetVector             bool
	UseGithub             bool
	UseShallow            bool
	GerritInteractionType string
	GerritUsername        string
	Options               exec.HandlerOptions
}

CloneSetupOpts for use with GithubCloneMediaWiki

type MediaWiki

type MediaWiki string

MediaWiki representation of a MediaWiki install directory

func ForCurrentWorkingDirectory

func ForCurrentWorkingDirectory() (MediaWiki, error)

ForCurrentWorkingDirectory returns a MediaWiki for the current working directory

func ForDirectory

func ForDirectory(directory string) (MediaWiki, error)

ForDirectory returns a MediaWiki for the current working directory

func (MediaWiki) CloneSetup

func (m MediaWiki) CloneSetup(options CloneSetupOpts)

CloneSetup provides a packages initial setup method for MediaWiki and Vector with some speedy features

func (MediaWiki) DeleteCache

func (m MediaWiki) DeleteCache()

DeleteCache ...

func (MediaWiki) DeleteVendor

func (m MediaWiki) DeleteVendor()

DeleteVendor ...

func (MediaWiki) Directory

func (m MediaWiki) Directory() string

Directory the directory containing MediaWiki

func (MediaWiki) EnsureCacheDirectory

func (m MediaWiki) EnsureCacheDirectory()

EnsureCacheDirectory ...

func (MediaWiki) GitCloneMediaWiki

func (m MediaWiki) GitCloneMediaWiki(options exec.HandlerOptions)

GitCloneMediaWiki ...

func (MediaWiki) GitCloneVector

func (m MediaWiki) GitCloneVector(options exec.HandlerOptions)

GitCloneVector ...

func (MediaWiki) LocalSettingsContains

func (m MediaWiki) LocalSettingsContains(text string) bool

LocalSettingsContains ...

func (MediaWiki) LocalSettingsIsPresent

func (m MediaWiki) LocalSettingsIsPresent() bool

LocalSettingsIsPresent ...

func (MediaWiki) MediaWikiIsPresent

func (m MediaWiki) MediaWikiIsPresent() bool

MediaWikiIsPresent ...

func (MediaWiki) Path

func (m MediaWiki) Path(subPath string) string

Path within the MediaWiki directory

func (MediaWiki) RenameLocalSettings

func (m MediaWiki) RenameLocalSettings()

RenameLocalSettings ...

func (MediaWiki) VectorIsPresent

func (m MediaWiki) VectorIsPresent() bool

VectorIsPresent ...

type NotMediaWikiDirectory

type NotMediaWikiDirectory struct {
	// contains filtered or unexported fields
}

NotMediaWikiDirectory error when a directory appears to not contain MediaWiki code

func (*NotMediaWikiDirectory) Error

func (e *NotMediaWikiDirectory) Error() string

Jump to

Keyboard shortcuts

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