cli

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package cli contains a CLI controller to the gitignore workflow

Index

Constants

This section is empty.

Variables

View Source
var GenerateCommand = &cobra.Command{
	Use:     "generate <language>",
	Short:   "Generate a gitignore.",
	Example: "gitignore generate go",
	Args:    cobra.ExactArgs(1),
	RunE: func(cmd *cobra.Command, args []string) error {
		c := getCLIInstance()
		err := c.Generate(args)
		if err != nil {
			return err
		}
		return nil
	},
}

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