installCmd

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2016 License: MIT Imports: 8 Imported by: 2

README

pkg install

Install the specified SalsaFlow release.

Usage

pkg install [-github_owner=OWNER]
            [-github_repo=REPO]
            [-dst=DST]
            <version>

Description

This command can be used to download and install the specified SalsaFlow release. The pre-built packages are fetched from GitHub. They are expected to be appended as release assets to the GitHub release specified by the given version.

The repository that the assets are fetched from can be specified using the available command line flags. By default it is salsaflow/salsaflow.

By default the current executables of SalsaFlow are replaced by the executables being installed, but -dst can be used to specify a custom target directory that the downloaded executables are moved to.

Release Assets

To make a GitHub release compatible with pkg, it is necessary to append a few zip archives to the release. These archives are expected to contain the pre-built binaries of SalsaFlow.

The binaries that are to be packed into the archive can be found in the bin directory of your Go workspace after running make.

It is necessary to create packages for all supported platforms and architectures. To make it possible for pkg to choose the right archive, the archive must be named in the following way:

salsaflow-<version>-<platform>-<architecture>.zip

For example it can be

salsaflow-0.4.0-darwin-amd64.zip

Documentation

Overview

Install the specified SalsaFlow release.

Description

This command can be used to download and install the specified SalsaFlow release. The pre-built packages are fetched from GitHub. They are expected to be appended as release assets to the GitHub release specified by the given version.

The repository that the assets are fetched from can be specified using the available command line flags. By default it is github.com/salsaflow/salsaflow.

Release Assets

To make a GitHub release compatible with pkg, it is necessary to append a few zip archives to the release. These archives are expected to contain the pre-built binaries of SalsaFlow.

The binaries that are to be packed into the archive can be found in the bin directory of your Go workspace after running make.

It is necessary to create packages for all supported platforms and architectures. To make it possible for pkg to choose the right archive, the archive must be named in the following way:

salsaflow-<version>-<platform>-<architecture>.zip

For example it can be

salsaflow-0.4.0-darwin-amd64.zip

Index

Constants

This section is empty.

Variables

View Source
var Command = &gocli.Command{
	UsageLine: "install [-github_owner=OWNER] [-github_repo=REPO] [-dst=DST] VERSION",
	Short:     "install chosen SalsaFlow version",
	Long: `
  Install SalsaFlow of the given version.

  The default GitHub repository to be used to fetch SalsaFlow releases
  can be overwritten using the available command line flags.

  -dst can be used to specify the directory to move the executables into.
  When no directory is specified, the current executables are replaced.
	`,
	Action: run,
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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