cmd

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "klone",
	Short: "Used to clone a git repository with style.",
	Long:  `Klone allows you define custom logic based on repository programming language.`,
	Run: func(cmd *cobra.Command, args []string) {
		local.PrintStartBanner()
		if len(args) > 0 {
			err := klone.Klone(args[0])
			if err != nil {
				local.PrintError(err)
			}
		} else {
			local.PrintErrorExitCode(errors.New("Missing argument. Use: 'klone $name'"), 99)
		}
	},
}

Functions

func Execute

func Execute()

Types

This section is empty.

Jump to

Keyboard shortcuts

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