gocurse

package module
v0.0.0-...-b833475 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2015 License: MIT Imports: 11 Imported by: 0

README

gocurse

Simple, hacked together Go package that assists in uploading a project to CurseForge.

Currently only works with Git repositories.

Why?

CurseForge does support using a SCM (git, svn, hg) to upload your project and automatically package it, but for some reason the packager bugs out sometimes. Forcing you to open a support ticket to get your project queued up. Decided to make a tool myself to do the same thing.

Notes

It's very simple and basic. You can modify the code to suit your needs.

Documentation

Index

Constants

View Source
const (
	FileTypeRelease      = "r"
	FileTypeBeta         = "b"
	FileTypeAlpha        = "a"
	MarkupTypeBBCode     = "bbcode"
	MarkupTypeMarkdown   = "markdown"
	MarkupTypePlain      = "plain"
	MarkupTypeHTML       = "html"
	MarkupTypeWikiCreole = "creole"
)

Variables

This section is empty.

Functions

func New

func New(game, apiKey string) *curse

Types

type FileOptions

type FileOptions struct {
	Name              string `json:"name"`
	GameVersions      string `json:"game_versions"`
	FileType          string `json:"file_type"`
	ChangeLog         string `json:"change_log"`
	ChangeMarkupType  string `json:"change_markup_type"`
	KnownCaveats      string `json:"known_caveats"`
	CaveatsMarkupType string `json:"caveats_markup_type"`
}

type GameVersion

type GameVersion struct {
	BreaksCompatibility bool   `json:"breaks_compatibility"`
	InternalID          string `json:"internal_id"`
	IsDevelopment       bool   `json:"is_development"`
	Name                string `json:"name"`
	ReleaseDate         string `json:"release_date"`
}

type GameVersions

type GameVersions map[string]GameVersion

type PkgMeta

type PkgMeta struct {
	PackageAs       string   `yaml:"package-as"`
	ManualChangelog string   `yaml:"manual-changelog"`
	Ignore          []string `yaml:"ignore,flow"`
}

func GetPkgMeta

func GetPkgMeta(path ...string) (*PkgMeta, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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