cmd

package
v0.0.0-...-9825f04 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2017 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const FormattingOptions = `` /* 1316-byte string literal not displayed */
View Source
const (
	WILDCARD = "*"
)

Variables

View Source
var (
	Version string // Software version, auto-populated on build
	Build   string // Software build date, auto-populated on build
	Branch  string // Git branch of the build
)
View Source
var GenCmd = &cobra.Command{
	Use:   "gen",
	Short: "Auto-generates Paraphrase's documentation",
	Long:  `Auto-generates man pages, markdown docs and bash autocompletion`,
	Run: func(cmd *cobra.Command, args []string) {
		cmd.Usage()
	},
}
View Source
var RootCmd = &cobra.Command{
	Use:   "paraphrase",
	Short: "Index text and look for duplicated content",
	Long: `Paraphrase looks for duplicated content given collections of text
good if you're looking for plagarism, suspicious copy/pasting, or links
between documents`,
	PersistentPreRun: func(cmd *cobra.Command, args []string) {
		if cpuprofile != "" {
			f, err := os.Create(cpuprofile)
			if err != nil {
				log.Fatal(err)
			}
			pprof.StartCPUProfile(f)
		}
	},
	Run: func(cmd *cobra.Command, args []string) {
		cmd.Usage()
	},

	PersistentPostRun: func(cmd *cobra.Command, args []string) {
		if db != nil {
			db.Close()
		}

		if cpuprofile != "" {
			pprof.StopCPUProfile()
		}
	},
}

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