commands

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2017 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LATEST_RELEASE = "https://api.github.com/repos/fadion/steer/releases/latest"
	ASSET_URL      = "https://api.github.com/repos/fadion/steer/releases/assets/%d"
	FILE_FLAGS     = os.O_RDWR | os.O_CREATE | os.O_TRUNC
)

Variables

This section is empty.

Functions

func Deploy

func Deploy(ctx *cli.Context) error

Deploy file changes to the server.

func Init

func Init(ctx *cli.Context) error

Create a template configuration file.

func Log

func Log(ctx *cli.Context) error

Sync the remote revision.

func Preview

func Preview(ctx *cli.Context) error

Preview file changes.

func Status

func Status(ctx *cli.Context) error

Preview file changes.

func Sync

func Sync(ctx *cli.Context) error

Sync the remote revision.

func Update

func Update(ctx *cli.Context) error

Update steer executable to the latest version. Implementation based on https://github.com/exercism/cli

Types

type Asset

type Asset struct {
	Id   int    `json:"id"`
	Name string `json:"name"`
}

A release asset.

type Release

type Release struct {
	Version     string  `json:"tag_name"`
	Assets      []Asset `json:"assets"`
	Description string  `json:"body"`
}

A GitHub release.

Jump to

Keyboard shortcuts

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