cmd

package
v0.0.1-snapshot Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "gofortune",
	Short: "A modernized fortune",
	Long:  `GoFortune is an implementation in the fortune unix tool set: fortune and strfile. Aiming storage format and command-line compatibility with the fortune-mod version in 1.0.`,
}

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

type FortuneRequest

type FortuneRequest struct {
	AllMaxims, ShowCookieFile, PrintListOfFiles bool
	LongDictumsOnly, ShortOnly, IgnoreCase      bool
	Wait, ConsiderAllEqual, Offensive           bool
	Match                                       string
	LongestShort                                int
	Paths                                       []fortune.ProbabilityPath
	OffensivePaths                              []fortune.ProbabilityPath
}

type StrFileRequest

type StrFileRequest struct {
	DelimitingChar, SourceFile, DataFile        string
	IgnoreCase, Silent, Order, Randomize, Rot13 bool
}

Jump to

Keyboard shortcuts

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