Skip to content

Commit e337ece

Browse files
rmetzlercmaglie
authored andcommitted
use arduino-cli in examples
1 parent 802b900 commit e337ece

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Diff for: README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ Usage:
253253
arduino-cli core [command]
254254

255255
Examples:
256-
arduino core update-index # to update the package index file.
256+
arduino-cli core update-index # to update the package index file.
257257

258258
Available Commands:
259259
download Downloads one or more cores and corresponding tool dependencies.
@@ -272,4 +272,3 @@ Global Flags:
272272
Use "arduino-cli core [command] --help" for more information about a command.
273273

274274
```
275-

Diff for: commands/core/install.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@ func initInstallCommand() *cobra.Command {
3333
Use: "install PACKAGER:ARCH[@VERSION] ...",
3434
Short: "Installs one or more cores and corresponding tool dependencies.",
3535
Long: "Installs one or more cores and corresponding tool dependencies.",
36-
Example: "" +
37-
"arduino core install arduino:samd # to download the latest version of arduino SAMD core." +
38-
"arduino core install arduino:samd=1.6.9 # for a specific version (in this case 1.6.9).",
36+
Example: " # download the latest version of arduino SAMD core.\n" +
37+
" " + commands.AppName + " core install arduino:samd\n\n" +
38+
" # download a specific version (in this case 1.6.9).\n" +
39+
" " + commands.AppName + " core install arduino:samd=1.6.9",
3940
Args: cobra.MinimumNArgs(1),
4041
Run: runInstallCommand,
4142
}

0 commit comments

Comments
 (0)