Skip to content

Commit

Permalink
fix: re-use version info in yaml2xml
Browse files Browse the repository at this point in the history
  • Loading branch information
micovery committed Apr 10, 2024
1 parent 57c2e2c commit a71749d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 49 deletions.
5 changes: 3 additions & 2 deletions cmd/yaml2xml/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
"bufio"
"flag"
"fmt"
"github.com/micovery/apigee-yaml-toolkit/cmd/yaml2xml/resources"
"github.com/micovery/apigee-yaml-toolkit/pkg/utils"
"gopkg.in/yaml.v3"
"os"
Expand All @@ -34,12 +35,12 @@ func main() {
flag.Parse()

if version {
PrintVersion()
utils.PrintVersion()
return
}

if help {
PrintUsage()
resources.PrintUsage()
return
}

Expand Down
47 changes: 0 additions & 47 deletions cmd/yaml2xml/version.go

This file was deleted.

0 comments on commit a71749d

Please # to comment.