mirror of
https://github.com/mikefarah/yq.git
synced 2026-07-05 12:10:37 +00:00
Merge branch 'imzue-build-small-yq'
This commit is contained in:
commit
6a5e95ac84
@ -1,3 +1,5 @@
|
|||||||
|
//go:build !yq_nojson
|
||||||
|
|
||||||
package yqlib
|
package yqlib
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
|
//go:build !yq_nobase64
|
||||||
|
|
||||||
package yqlib
|
package yqlib
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
|
//go:build !yq_nocsv
|
||||||
|
|
||||||
package yqlib
|
package yqlib
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
|
//go:build !yq_noprops
|
||||||
|
|
||||||
package yqlib
|
package yqlib
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
|
//go:build !yq_nouri
|
||||||
|
|
||||||
package yqlib
|
package yqlib
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
|
//go:build !yq_nobase64
|
||||||
|
|
||||||
package yqlib
|
package yqlib
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
|
//go:build !yq_nocsv
|
||||||
|
|
||||||
package yqlib
|
package yqlib
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
|
//go:build !yq_noprops
|
||||||
|
|
||||||
package yqlib
|
package yqlib
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
|
//go:build !yq_nosh
|
||||||
|
|
||||||
package yqlib
|
package yqlib
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
|
//go:build !yq_noshell
|
||||||
|
|
||||||
package yqlib
|
package yqlib
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
|
//go:build !yq_nouri
|
||||||
|
|
||||||
package yqlib
|
package yqlib
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|||||||
11
pkg/yqlib/no_base64.go
Normal file
11
pkg/yqlib/no_base64.go
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
//go:build yq_nobase64
|
||||||
|
|
||||||
|
package yqlib
|
||||||
|
|
||||||
|
func NewBase64Decoder() Decoder {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewBase64Encoder() Encoder {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
11
pkg/yqlib/no_csv.go
Normal file
11
pkg/yqlib/no_csv.go
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
//go:build yq_nocsv
|
||||||
|
|
||||||
|
package yqlib
|
||||||
|
|
||||||
|
func NewCSVObjectDecoder(prefs CsvPreferences) Decoder {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewCsvEncoder(prefs CsvPreferences) Encoder {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
@ -6,6 +6,6 @@ func NewINIDecoder() Decoder {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewINIEncoder(indent int) Encoder {
|
func NewINIEncoder() Encoder {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
@ -6,6 +6,6 @@ func NewJSONDecoder() Decoder {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewJSONEncoder(indent int, colorise bool, unwrapScalar bool) Encoder {
|
func NewJSONEncoder(prefs JsonPreferences) Encoder {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
11
pkg/yqlib/no_props.go
Normal file
11
pkg/yqlib/no_props.go
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
//go:build yq_noprops
|
||||||
|
|
||||||
|
package yqlib
|
||||||
|
|
||||||
|
func NewPropertiesDecoder() Decoder {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewPropertiesEncoder(prefs PropertiesPreferences) Encoder {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
7
pkg/yqlib/no_sh.go
Normal file
7
pkg/yqlib/no_sh.go
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
//go:build yq_nosh
|
||||||
|
|
||||||
|
package yqlib
|
||||||
|
|
||||||
|
func NewShEncoder() Encoder {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
7
pkg/yqlib/no_shellvariables.go
Normal file
7
pkg/yqlib/no_shellvariables.go
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
//go:build yq_noshell
|
||||||
|
|
||||||
|
package yqlib
|
||||||
|
|
||||||
|
func NewShellVariablesEncoder() Encoder {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
11
pkg/yqlib/no_uri.go
Normal file
11
pkg/yqlib/no_uri.go
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
//go:build yq_nouri
|
||||||
|
|
||||||
|
package yqlib
|
||||||
|
|
||||||
|
func NewUriDecoder() Decoder {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewUriEncoder() Encoder {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
@ -6,6 +6,6 @@ func NewXMLDecoder(prefs XmlPreferences) Decoder {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewXMLEncoder(indent int, prefs XmlPreferences) Encoder {
|
func NewXMLEncoder(prefs XmlPreferences) Encoder {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
@ -258,3 +258,13 @@ nolint
|
|||||||
shortfile
|
shortfile
|
||||||
Unmarshalling
|
Unmarshalling
|
||||||
noini
|
noini
|
||||||
|
<<<<<<< Updated upstream
|
||||||
|
nocsv
|
||||||
|
nobase64
|
||||||
|
nouri
|
||||||
|
noprops
|
||||||
|
nosh
|
||||||
|
noshell
|
||||||
|
=======
|
||||||
|
tinygo
|
||||||
|
>>>>>>> Stashed changes
|
||||||
|
|||||||
@ -1,2 +1,2 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
go build -tags "yq_nolua yq_notoml yq_noxml yq_nojson" -ldflags "-s -w" .
|
go build -tags "yq_nolua yq_noini yq_notoml yq_noxml yq_nojson" -ldflags "-s -w" .
|
||||||
4
scripts/build-tinygo-yq.sh
Executable file
4
scripts/build-tinygo-yq.sh
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Currently, the `yq_nojson` feature must be enabled when using TinyGo.
|
||||||
|
tinygo build -no-debug -tags "yq_nolua yq_noini yq_notoml yq_noxml yq_nojson yq_nocsv yq_nobase64 yq_nouri yq_noprops yq_nosh yq_noshell" .
|
||||||
Loading…
Reference in New Issue
Block a user