cmd

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "gip",
	Short: "A simple tool to manage the dependency of a go project.",
	Long: `A simple tool to manage the dependency of a go project.

Examples:
	# install the requirements first
	gip install requirements.txt

	# use normal gip to install packages, $options and $pkg will pass to go get
	gip get -- $options $pkg

	# or specify the git clone url
	gip get github.com/golang/net#master,golang.org/x/net

	# coding, coding, coding

	# before push, generate the requirements.txt and commit it
	gip freeze > requirements.txt
	`,
}

RootCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute()

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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