scoop

package
v0.54.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package scoop provides a Pipe that generates a scoop.sh App Manifest and pushes it to a bucket

Index

Constants

This section is empty.

Variables

View Source
var ErrNoWindows = errors.New("scoop requires a windows build")

ErrNoWindows when there is no build for windows (goos doesn't contain windows)

Functions

This section is empty.

Types

type Manifest

type Manifest struct {
	Version      string              `json:"version"`               // The version of the app that this manifest installs.
	Architecture map[string]Resource `json:"architecture"`          // `architecture`: If the app has 32- and 64-bit versions, architecture can be used to wrap the differences.
	Homepage     string              `json:"homepage,omitempty"`    // `homepage`: The home page for the program.
	License      string              `json:"license,omitempty"`     // `license`: The software license for the program. For well-known licenses, this will be a string like "MIT" or "GPL2". For custom licenses, this should be the URL of the license.
	Description  string              `json:"description,omitempty"` // Description of the app
}

Manifest represents a scoop.sh App Manifest, more info: https://github.com/lukesampson/scoop/wiki/App-Manifests

type Pipe

type Pipe struct{}

Pipe for build

func (Pipe) Default

func (Pipe) Default(ctx *context.Context) error

Default sets the pipe defaults

func (Pipe) Run

func (Pipe) Run(ctx *context.Context) error

Run the pipe

func (Pipe) String

func (Pipe) String() string

type Resource

type Resource struct {
	URL string `json:"url"` // URL to the archive
	Bin string `json:"bin"` // name of binary inside the archive
}

Resource represents a combination of a url and a binary name for an architecture

Jump to

Keyboard shortcuts

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