cmd

package
v0.0.0-...-d7f1dd7 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2017 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCommand = &cobra.Command{
	Use:   "releaser",
	Short: "Release assistant",
	Long:  `Release assistant built by avarabyeu`,
	Run: func(cmd *cobra.Command, args []string) {

	},
}

RootCommand entry point for all commands

Functions

func GetSemver

func GetSemver(cmd *cobra.Command) *util.Semver

GetSemver returns Semver struct based on path provided

func GetSemverFile

func GetSemverFile(cmd *cobra.Command) string

GetSemverFile obtains path to semver file or returns default one

Types

type BintrayConf

type BintrayConf struct {
	User  string
	Token string
	Repo  string
	Pack  string
	Org   string
}

BintrayConf represents project config

type Config

type Config struct {
	Bintray         *BintrayConf `mapstructure:"bintray"`
	ArtifactsFolder string
	Replace         string
}

Config represents project config

func (*Config) GetFilesToReplace

func (c *Config) GetFilesToReplace() map[string]string

GetFilesToReplace get map of file names to replace placeholders

Jump to

Keyboard shortcuts

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