Debian Codegraph @

cmd/dasel/main.go

raw symbols SCIP
1 package main
2
3 import (
4 "io"
5 "os"
6
7 "github.com/tomwright/dasel/v3/internal/cli"
8 _ "github.com/tomwright/dasel/v3/parsing/csv"
9 _ "github.com/tomwright/dasel/v3/parsing/d"
10 _ "github.com/tomwright/dasel/v3/parsing/hcl"
11 _ "github.com/tomwright/dasel/v3/parsing/ini"
12 _ "github.com/tomwright/dasel/v3/parsing/json"
13 _ "github.com/tomwright/dasel/v3/parsing/kdl"
14 _ "github.com/tomwright/dasel/v3/parsing/toml"
15 _ "github.com/tomwright/dasel/v3/parsing/xml"
16 _ "github.com/tomwright/dasel/v3/parsing/yaml"
17 )
18
19 func main() {
20 var stdin io.Reader = os.Stdin
21 fi, err := os.Stdin.Stat()
22 if err != nil || (fi.Mode()&os.ModeCharDevice != 0) {
23 stdin = nil
24 }
25 cli.MustRun(stdin, os.Stdout, os.Stderr)
26 }