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.
Click to show internal directories.
Click to hide internal directories.