Skip to content

Commit 8659dd2

Browse files
committed
Rename configuration file
1 parent 5f9cff0 commit 8659dd2

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
/main
44
/.vscode/settings.json
55
/cmd/formatter/debug.test
6-
/.cli-config.yml
6+
/arduino-cli.yaml
77
/wiki

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ Great! Now we have the Board FQBN (Fully Qualified Board Name) `arduino:samd:mkr
162162
and the Board Name look good, we are ready to compile and upload the sketch
163163

164164
#### Adding 3rd party cores
165-
To add 3rd party core packages add a link of the additional package to the file `.cli-config.yml`
165+
To add 3rd party core packages add a link of the additional package to the file `arduino-cli.yaml`
166166

167167
If you want to add the ESP8266 core, for example:
168168

@@ -295,7 +295,7 @@ Flags:
295295
-h, --help help for core
296296

297297
Global Flags:
298-
--config-file string The custom config file (if not specified the default one will be used). (example "/home/megabug/.config/arduino/arduino-cli/.cli-config.yml")
298+
--config-file string The custom config file (if not specified the default one will be used). (example "/home/megabug/.config/arduino/arduino-cli/arduino-cli.yaml")
299299
--debug Enables debug output (super verbose, used to debug the CLI).
300300
--format string The output format, can be [text|json]. (default "text")
301301

commands/config/init.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func initInitCommand() *cobra.Command {
4242
initCommand.Flags().BoolVar(&initFlags._default, "default", false,
4343
"If omitted, ask questions to the user about setting configuration properties, otherwise use default configuration.")
4444
initCommand.Flags().StringVar(&initFlags.location, "save-as", "",
45-
"Sets where to save the configuration file [default is ./.cli-config.yml].")
45+
"Sets where to save the configuration file [default is ./arduino-cli.yaml].")
4646
return initCommand
4747
}
4848

configs/directories.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,21 @@ import (
2727
"github.com/shibukawa/configdir"
2828
)
2929

30-
// getDefaultConfigFilePath returns the default path for .cli-config.yml. It searches the following directories for an existing .cli-config.yml file:
30+
// getDefaultConfigFilePath returns the default path for arduino-cli.yaml. It searches the following directories for an existing arduino-cli.yaml file:
3131
// - User level configuration folder(e.g. $HOME/.config/<vendor-name>/<application-name>/setting.json in Linux)
3232
// - System level configuration folder(e.g. /etc/xdg/<vendor-name>/<application-name>/setting.json in Linux)
3333
// If it doesn't find one, it defaults to the user level configuration folder
3434
func getDefaultConfigFilePath() *paths.Path {
3535
configDirs := configdir.New("arduino", "arduino-cli")
3636

3737
// Search for a suitable configuration file
38-
path := configDirs.QueryFolderContainsFile(".cli-config.yml")
38+
path := configDirs.QueryFolderContainsFile("arduino-cli.yaml")
3939
if path != nil {
40-
return paths.New(path.Path, ".cli-config.yml")
40+
return paths.New(path.Path, "arduino-cli.yaml")
4141
}
4242
// Default to the global configuration
4343
locals := configDirs.QueryFolders(configdir.Global)
44-
return paths.New(locals[0].Path, ".cli-config.yml")
44+
return paths.New(locals[0].Path, "arduino-cli.yaml")
4545

4646
return nil
4747
}

0 commit comments

Comments
 (0)