Skip to content

use arduino-cli in examples #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 27, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ Usage:
arduino-cli core [command]

Examples:
arduino core update-index # to update the package index file.
arduino-cli core update-index # to update the package index file.

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

```

7 changes: 4 additions & 3 deletions commands/core/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ func initInstallCommand() *cobra.Command {
Use: "install PACKAGER:ARCH[@VERSION] ...",
Short: "Installs one or more cores and corresponding tool dependencies.",
Long: "Installs one or more cores and corresponding tool dependencies.",
Example: "" +
"arduino core install arduino:samd # to download the latest version of arduino SAMD core." +
"arduino core install arduino:samd=1.6.9 # for a specific version (in this case 1.6.9).",
Example: " # download the latest version of arduino SAMD core.\n" +
" " + commands.AppName + " core install arduino:samd\n\n" +
" # download a specific version (in this case 1.6.9).\n" +
" " + commands.AppName + " core install arduino:samd=1.6.9",
Args: cobra.MinimumNArgs(1),
Run: runInstallCommand,
}
Expand Down