Hi!
Documentation says that we can use several Supported formats
Supported formats - (Configuration - Arduino CLI) arduino-cli config init creates a YAML file, however a variety of common formats are supported: ... INI
But when I try something like
arduino-cli.exe config init --dest-file arduino-cli.ini
error occurs
panic: interface conversion: interface {} is nil, not string
goroutine 1 [running]:
github.com/spf13/viper.(*Viper).marshalWriter(0xc000847c88, 0x121cae0, 0xc000006bc0, 0xc0008a807b, 0x3, 0x121cae0, 0xc000006bc0)
/go/pkg/mod/github.com/spf13/[email protected]/viper.go:1622 +0x124f
github.com/spf13/viper.(*Viper).writeConfig(0xc000847c88, 0xc0008a8060, 0x1e, 0x1, 0x0, 0x0)
/go/pkg/mod/github.com/spf13/[email protected]/viper.go:1442 +0x1f4
github.com/spf13/viper.(*Viper).WriteConfigAs(...)
/go/pkg/mod/github.com/spf13/[email protected]/viper.go:1406
github.com/arduino/arduino-cli/cli/config.runInitCommand(0xc000628840, 0xc000807800, 0x0, 0x2)
/home/build/cli/config/init.go:104 +0x430
github.com/spf13/cobra.(*Command).execute(0xc000628840, 0xc0008077e0, 0x2, 0x2, 0xc000628840, 0xc0008077e0)
/go/pkg/mod/github.com/spf13/[email protected]/command.go:846 +0x2a4
github.com/spf13/cobra.(*Command).ExecuteC(0xc000029b80, 0x0, 0xc0007f1c20, 0x0)
/go/pkg/mod/github.com/spf13/[email protected]/command.go:950 +0x350
github.com/spf13/cobra.(*Command).Execute(...)
/go/pkg/mod/github.com/spf13/[email protected]/command.go:887
main.main()
/home/build/main.go:31 +0x8c
In any way in the arduino-cli sources threre are nothing about * [TOML] * [INI] and other formats, arduino-cli.yaml presents only.
How can I use arduino-cli.ini as arduino-cli configuration file?
Thanks!
ps. TOML format save correctly.