diff --git a/go.mod b/go.mod index b3582fa..79a8aca 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ toolchain go1.22.8 require ( cloud.google.com/go/spanner v1.45.0 github.com/apstndb/lox v0.0.0-20230530141045-98c1efebcde8 - github.com/goccy/go-graphviz v0.2.0 + github.com/goccy/go-graphviz v0.2.2 github.com/jessevdk/go-flags v1.6.1 github.com/olekukonko/tablewriter v0.0.5 github.com/samber/lo v1.47.0 @@ -18,6 +18,7 @@ require ( ) require ( + github.com/flopp/go-findfont v0.1.0 // indirect github.com/fogleman/gg v1.3.0 // indirect github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 // indirect github.com/golang/protobuf v1.5.3 // indirect diff --git a/go.sum b/go.sum index 08ef612..2f56a8e 100644 --- a/go.sum +++ b/go.sum @@ -7,10 +7,14 @@ github.com/corona10/goimagehash v1.1.0/go.mod h1:VkvE0mLn84L4aF8vCb6mafVajEb6QYM github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/flopp/go-findfont v0.1.0 h1:lPn0BymDUtJo+ZkV01VS3661HL6F4qFlkhcJN55u6mU= +github.com/flopp/go-findfont v0.1.0/go.mod h1:wKKxRDjD024Rh7VMwoU90i6ikQRCr+JTHB5n4Ejkqvw= github.com/fogleman/gg v1.3.0 h1:/7zJX8F6AaYQc57WQCyN9cAIz+4bCJGO9B+dyW29am8= github.com/fogleman/gg v1.3.0/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= github.com/goccy/go-graphviz v0.2.0 h1:3pJq01IdRAukFeW5Bk/bKyfo58cHbmoKbZUzdGwRGW4= github.com/goccy/go-graphviz v0.2.0/go.mod h1:5Fi28O8Z6xNnGC/+FlDZpAm2xi3Rr/7qmvBEMs4MY8Q= +github.com/goccy/go-graphviz v0.2.2 h1:5Q8eJlU8SiGQtjwkDMtoaz0VMbvn+1NqbzfS/OvXcjw= +github.com/goccy/go-graphviz v0.2.2/go.mod h1:5LlXMuQb+3UcNJGqhtkrfDFlCwrWZ6K0MCJyuP9cl7A= github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 h1:DACJavvAHhabrF08vX0COfcOBJRhZ8lUbR+ZWIs0Y5g= github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= diff --git a/option/options.go b/option/options.go index 2985b71..6016c4b 100644 --- a/option/options.go +++ b/option/options.go @@ -4,7 +4,7 @@ type Options struct { Positional struct { Input string } `positional-args:"yes"` - TypeFlag string `long:"type" description:"output type" default:"svg" choice:"svg" choice:"dot"` // nolint:staticcheck + TypeFlag string `long:"type" description:"output type" default:"svg" choice:"svg" choice:"dot" choice:"png"` // nolint:staticcheck Filename string `long:"output"` NonVariableScalar bool `long:"non-variable-scalar"` VariableScalar bool `long:"variable-scalar"`