cmd

package
v0.0.0-...-040724e Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2019 License: BSD-3-Clause, GPL-2.0 Imports: 52 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:          "antha",
	Short:        "Antha command line tool",
	SilenceUsage: true,
}

RootCmd is base command when called without any subcommands

Functions

func Execute

func Execute(lib []component.Component) error

Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func GetStringSlice

func GetStringSlice(key string) []string

GetStringSlice gets a slice of values for a key.

It is workaround for a bug in viper: string slice flags like:

["a", "b"]

are flattened to a string slice like this:

["[a,b]"]

Types

type ConversionDetails

type ConversionDetails struct {
	OldElementName       string                     `json:"old-element-name"`
	NewElementName       string                     `json:"new-element-name"`
	NewParameterMapping  map[string]string          `json:"new-parameter-mapping"`
	DeprecatedParameters []string                   `json:"deprecated-parameters"`
	NewParameters        map[string]json.RawMessage `json:"new-parameters"`
	ParameterTypeChanges map[string]json.RawMessage `json:"parameter-type-changes"`
}

type NewElementMappingDetails

type NewElementMappingDetails struct {
	ConversionDetails `json:"new-element-mapping-details"`
}

func (NewElementMappingDetails) Empty

func (c NewElementMappingDetails) Empty() bool

Jump to

Keyboard shortcuts

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