cmd

package
v3.9.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2018 License: MIT Imports: 17 Imported by: 3

Documentation

Index

Constants

View Source
const Version = "3.9.2"

Version is the current version of the tool.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:     binaryName,
	Short:   "A tool for managing Exercism language track repositories.",
	Long:    binaryName + " version " + Version + "\n\n" + "A tool for managing Exercism language track repositories.",
	Example: rootExampleText(),
}

RootCmd represents the base command when called without any subcommands

View Source
var (
	// UUIDValidationURL is the endpoint to Exercism's UUID validation service.
	UUIDValidationURL = "http://exercism.io/api/v1/uuids"
)

Functions

func Execute

func Execute()

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.

Types

type ConfigSerializer

type ConfigSerializer interface {
	LoadFromFile(string) error
	ToJSON() ([]byte, error)
}

ConfigSerializer reads and serializes JSON configs.

Jump to

Keyboard shortcuts

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