MCPcopy Create free account
hub / github.com/cloudflare/cfssl / printDefaults

Function printDefaults

cli/printdefault/printdefault.go:24–41  ·  view source on GitHub ↗
(args []string, c cli.Config)

Source from the content-addressed store, hash-verified

22}
23
24func printDefaults(args []string, c cli.Config) (err error) {
25 arg, _, err := cli.PopFirstArgument(args)
26 if err != nil {
27 return
28 }
29
30 if arg == "list" {
31 printAvailable()
32 } else {
33 if config, ok := defaults[arg]; !ok {
34 printAvailable()
35 } else {
36 fmt.Println(config)
37 }
38 }
39
40 return
41}
42
43// Command assembles the definition of Command 'print-defaults'
44var Command = &cli.Command{

Callers

nothing calls this directly

Calls 2

PopFirstArgumentFunction · 0.92
printAvailableFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…