Commit e337eceb authored by Richard Metzler's avatar Richard Metzler Committed by Cristian Maglie

use arduino-cli in examples

parent 802b900f
...@@ -253,7 +253,7 @@ Usage: ...@@ -253,7 +253,7 @@ Usage:
arduino-cli core [command] arduino-cli core [command]
Examples: Examples:
arduino core update-index # to update the package index file. arduino-cli core update-index # to update the package index file.
Available Commands: Available Commands:
download Downloads one or more cores and corresponding tool dependencies. download Downloads one or more cores and corresponding tool dependencies.
...@@ -272,4 +272,3 @@ Global Flags: ...@@ -272,4 +272,3 @@ Global Flags:
Use "arduino-cli core [command] --help" for more information about a command. Use "arduino-cli core [command] --help" for more information about a command.
``` ```
...@@ -33,9 +33,10 @@ func initInstallCommand() *cobra.Command { ...@@ -33,9 +33,10 @@ func initInstallCommand() *cobra.Command {
Use: "install PACKAGER:ARCH[@VERSION] ...", Use: "install PACKAGER:ARCH[@VERSION] ...",
Short: "Installs one or more cores and corresponding tool dependencies.", Short: "Installs one or more cores and corresponding tool dependencies.",
Long: "Installs one or more cores and corresponding tool dependencies.", Long: "Installs one or more cores and corresponding tool dependencies.",
Example: "" + Example: " # download the latest version of arduino SAMD core.\n" +
"arduino core install arduino:samd # to download the latest version of arduino SAMD core." + " " + commands.AppName + " core install arduino:samd\n\n" +
"arduino core install arduino:samd=1.6.9 # for a specific version (in this case 1.6.9).", " # download a specific version (in this case 1.6.9).\n" +
" " + commands.AppName + " core install arduino:samd=1.6.9",
Args: cobra.MinimumNArgs(1), Args: cobra.MinimumNArgs(1),
Run: runInstallCommand, Run: runInstallCommand,
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment