// main defines the cfssl usage and registers all defined commands and flags.
main defines the cfssl usage and registers all defined commands and flags.
// main defines the cfssl usage and registers all defined commands and flags .
func main() {
	flag.Usage = nil 
	cmds := map[string]*cli.Command{
		"bundle":         bundle.Command,
		"certinfo":       certinfo.Command,
		"crl":            crl.Command,
		"sign":           sign.Command,
		"serve":          serve.Command,
		"version":        version.Command,
		"genkey":         genkey.Command,
		"gencert":        gencert.Command,
		"gencsr":         gencsr.Command,
		"gencrl":         gencrl.Command,
		"ocspdump":       ocspdump.Command,
		"ocsprefresh":    ocsprefresh.Command,
		"ocspsign":       ocspsign.Command,
		"ocspserve":      ocspserve.Command,
		"selfsign":       selfsign.Command,
		"scan":           scan.Command,
		"info":           info.Command,
		"print-defaults": printdefaults.Command,
		"revoke":         revoke.Command,
	}
	err := cli.Start(cmds)
	if err != nil {
		os.Exit(1)
	}
}
func main ( ) { flag . Usage = nil cmds := map [ string ] * cli . Command { " " : bundle . Command , " " : certinfo . Command , " " : crl . Command , " " : sign . Command , " " : serve . Command , " " : version . Command , " " : genkey . Command , " " : gencert . Command , " " : gencsr . Command , " " : gencrl . Command , " " : ocspdump . Command , " " : ocsprefresh . Command , " " : ocspsign . Command , " " : ocspserve . Command , " " : selfsign . Command , " " : scan . Command , " " : info . Command , " " : printdefaults . Command , " " : revoke . Command , } err := cli . Start ( cmds ) if err != nil { os . Exit ( 1 ) } }
main defines the cfssl usage and registers all defined commands and flags.
main defines the cfssl usage and registers all defined commands and flags .
// Add command names to cfssl usage // this is set to nil for testability // Register commands. // If the CLI returns an error, exit with an appropriate status // code.