Skip to content

Commit

Permalink
use cache consistently
Browse files Browse the repository at this point in the history
  • Loading branch information
stronnag committed Jan 25, 2022
1 parent 30914e7 commit 1c3bd5c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
19 changes: 9 additions & 10 deletions cmd/fl2mqtt/main.go
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
package main

import (
"os"
"fmt"
"log"
"path/filepath"
otx "github.com/stronnag/bbl2kml/pkg/otx"
bbl "github.com/stronnag/bbl2kml/pkg/bbl"
options "github.com/stronnag/bbl2kml/pkg/options"
types "github.com/stronnag/bbl2kml/pkg/api/types"
geo "github.com/stronnag/bbl2kml/pkg/geo"
ap "github.com/stronnag/bbl2kml/pkg/aplog"
bbl "github.com/stronnag/bbl2kml/pkg/bbl"
mqttgen "github.com/stronnag/bbl2kml/pkg/bltmqtt"
ltmgen "github.com/stronnag/bbl2kml/pkg/ltmgen"
blt "github.com/stronnag/bbl2kml/pkg/bltreader"
ap "github.com/stronnag/bbl2kml/pkg/aplog"
geo "github.com/stronnag/bbl2kml/pkg/geo"
ltmgen "github.com/stronnag/bbl2kml/pkg/ltmgen"
options "github.com/stronnag/bbl2kml/pkg/options"
otx "github.com/stronnag/bbl2kml/pkg/otx"
"log"
"os"
"path/filepath"
)

var GitCommit = "local"
Expand All @@ -24,7 +24,6 @@ func getVersion() string {
}

func main() {
types.Init()
files, app := options.ParseCLI(getVersion)
if len(files) == 0 || (len(options.Config.Mqttopts) == 0 && len(options.Config.Outdir) == 0 &&
options.Config.Dump == false && len(options.Config.LTMdev) == 0 && options.Config.Metas == false) {
Expand Down
1 change: 1 addition & 0 deletions pkg/options/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ func parse_config_file() error {
}

func ParseCLI(gv func() string) ([]string, string) {
types.Init()
app := filepath.Base(os.Args[0])
var err error

Expand Down

0 comments on commit 1c3bd5c

Please sign in to comment.