feat: add TOML codec and envc format support
New toml package (pelletier/go-toml/v2) matching yaml/json options and merge flow. envc convert/get/merge accept --from/--to toml; fixture and CLI tests; docs refresh. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+2
-2
@@ -15,8 +15,8 @@ import (
|
||||
func RunMerge(args []string, stdin io.Reader, stdout, stderr io.Writer) int {
|
||||
fs := flag.NewFlagSet("merge", flag.ContinueOnError)
|
||||
fs.SetOutput(stderr)
|
||||
from := fs.String("from", "", "input format: yaml|json|ini|env")
|
||||
to := fs.String("to", "", "output format: yaml|json|ini|env")
|
||||
from := fs.String("from", "", "input format: yaml|json|toml|ini|env")
|
||||
to := fs.String("to", "", "output format: yaml|json|toml|ini|env")
|
||||
output := fs.String("output", "-", "output path or - for stdout")
|
||||
if err := fs.Parse(args); err != nil {
|
||||
return 2
|
||||
|
||||
Reference in New Issue
Block a user