We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac60a09 commit e8690a9Copy full SHA for e8690a9
cmd/tegola/cmd/root.go
@@ -20,7 +20,7 @@ var (
20
// parsed config
21
conf config.Config
22
23
- // require cache
+ // RequireCache in this instance
24
RequireCache bool
25
)
26
@@ -77,11 +77,11 @@ var RootCmd = &cobra.Command{
77
Use: "tegola",
78
Short: "tegola is a vector tile server",
79
Long: fmt.Sprintf(`tegola is a vector tile server
80
-Version: %v`, build.Version),
+ Version: %v`, build.Version),
81
PersistentPreRunE: rootCmdValidatePersistent,
82
}
83
84
-func rootCmdValidatePersistent(cmd *cobra.Command, args []string) (err error) {
+func rootCmdValidatePersistent(cmd *cobra.Command, _ []string) (err error) {
85
requireCache := RequireCache || cachecmd.RequireCache
86
cmdName := cmd.CalledAs()
87
switch cmdName {
0 commit comments