cmd

package
v0.0.0-...-96b7d44 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: AFL-3.0, CC-BY-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootClis = RootClisT{
	Version:   version,
	Verbose:   1,
	HelpFlags: true,
}
View Source
var RootCmd = &cobra.Command{
	Use:   "pdf2plain [input.pdf]",
	Short: "A wrapper command line tool to convert pdf files to plain text.",
	Long:  `A wrapper command line tool to convert pdf files to plain text. More see here https://github.com/openanno/bioextr.`,
	Run: func(cmd *cobra.Command, args []string) {
		if RootClis.Clean {
			RootClis.HelpFlags = false
		}
		if len(args) > 0 {
			initCmd(cmd, args)
			convertor(cmd, args)
			RootClis.HelpFlags = false
		}
		if RootClis.HelpFlags {
			cmd.Help()
		}
	},
}

Functions

func Execute

func Execute()

Execute main interface of bget

Types

type RootClisT

type RootClisT struct {
	// version of bioctl
	Version string
	Verbose int
	SaveLog bool
	TaskID  string
	LogDir  string
	Clean   bool
	Out     string

	HelpFlags bool
}

RootClisT is the bioctl global flags

Jump to

Keyboard shortcuts

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