File tree Expand file tree Collapse file tree 20 files changed +28
-26
lines changed Expand file tree Collapse file tree 20 files changed +28
-26
lines changed Original file line number Diff line number Diff line change @@ -41,8 +41,8 @@ func initAttachCommand() *cobra.Command {
4141 Short : "Attaches a sketch to a board." ,
4242 Long : "Attaches a sketch to a board." ,
4343 Example : "arduino board attach serial:///dev/tty/ACM0\n " +
44- "arduino board attach serial:///dev/tty/ACM0 HelloWorld\n " +
45- "arduino board attach arduino:samd:mkr1000" ,
44+ " " + commands . AppName + " board attach serial:///dev/tty/ACM0 HelloWorld\n " +
45+ " " + commands . AppName + " board attach arduino:samd:mkr1000" ,
4646 Args : cobra .RangeArgs (1 , 2 ),
4747 Run : runAttachCommand ,
4848 }
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ func initListCommand() *cobra.Command {
3535 Use : "list" ,
3636 Short : "List connected boards." ,
3737 Long : "Detects and displays a list of connected boards to the current computer." ,
38- Example : "arduino board list --timeout 10s" ,
38+ Example : " " + commands . AppName + " board list --timeout 10s" ,
3939 Args : cobra .NoArgs ,
4040 Run : runListCommand ,
4141 }
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ func initListAllCommand() *cobra.Command {
3131 Use : "listall" ,
3232 Short : "List all known boards." ,
3333 Long : "List all boards that have the support platform installed." ,
34- Example : "arduino board listall" ,
34+ Example : " " + commands . AppName + " board listall" ,
3535 Args : cobra .NoArgs ,
3636 Run : runListAllCommand ,
3737 }
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ func initDumpCommand() *cobra.Command {
3232 Use : "dump" ,
3333 Short : "Prints the current configuration" ,
3434 Long : "Prints the current configuration." ,
35- Example : "arduino config dump" ,
35+ Example : " " + commands . AppName + " config dump" ,
3636 Args : cobra .NoArgs ,
3737 Run : runDumpCommand ,
3838 }
Original file line number Diff line number Diff line change @@ -32,8 +32,10 @@ func initInitCommand() *cobra.Command {
3232 Short : "Initializes a new config file into the default location." ,
3333 Long : "Initializes a new config file into the default location ($EXE_DIR/cli-config.yml)." ,
3434 Example : "" +
35- "arduino config init # Creates a config file by asking questions to the user into the default location.\n " +
36- "arduino config init --default # Creates a config file with default configuration into default location." ,
35+ " # Creates a config file by asking questions to the user into the default location.\n " +
36+ " " + commands .AppName + " config init\n \n " +
37+ " # Creates a config file with default configuration into default location.\n " +
38+ " " + commands .AppName + " config init --default\n " ,
3739 Args : cobra .NoArgs ,
3840 Run : runInitCommand ,
3941 }
Original file line number Diff line number Diff line change @@ -34,8 +34,8 @@ func initDownloadCommand() *cobra.Command {
3434 Short : "Downloads one or more cores and corresponding tool dependencies." ,
3535 Long : "Downloads one or more cores and corresponding tool dependencies." ,
3636 Example : "" +
37- "arduino core download arduino:samd # to download the latest version of arduino SAMD core.\n " +
38- "arduino core download arduino:samd=1.6.9 # for a specific version (in this case 1.6.9)." ,
37+ " " + commands . AppName + " core download arduino:samd # to download the latest version of arduino SAMD core.\n " +
38+ " " + commands . AppName + " core download arduino:samd=1.6.9 # for a specific version (in this case 1.6.9)." ,
3939 Args : cobra .MinimumNArgs (1 ),
4040 Run : runDownloadCommand ,
4141 }
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ import (
2929
3030func initInstallCommand () * cobra.Command {
3131 installCommand := & cobra.Command {
32- Use : "install [ PACKAGER:ARCH[= VERSION]](S) " ,
32+ Use : "install PACKAGER:ARCH[@ VERSION] ... " ,
3333 Short : "Installs one or more cores and corresponding tool dependencies." ,
3434 Long : "Installs one or more cores and corresponding tool dependencies." ,
3535 Example : "" +
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ func initListCommand() *cobra.Command {
3131 Short : "Shows the list of installed cores." ,
3232 Long : "Shows the list of installed cores.\n " +
3333 "With -v tag (up to 2 times) can provide more verbose output." ,
34- Example : "arduino core list -v # for a medium verbosity level." ,
34+ Example : " " + commands . AppName + " core list -v # for a medium verbosity level." ,
3535 Args : cobra .NoArgs ,
3636 Run : runListCommand ,
3737 }
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ func initSearchCommand() *cobra.Command {
3232 Use : "search <keywords...>" ,
3333 Short : "Search for a core in the package index." ,
3434 Long : "Search for a core in the package index using the specified keywords." ,
35- Example : "arduino core search MKRZero -v" ,
35+ Example : " " + commands . AppName + " core search MKRZero -v" ,
3636 Args : cobra .MinimumNArgs (1 ),
3737 Run : runSearchCommand ,
3838 }
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ func initUpdateIndexCommand() *cobra.Command {
3737 Use : "update-index" ,
3838 Short : "Updates the index of cores." ,
3939 Long : "Updates the index of cores to the latest version." ,
40- Example : "arduino core update-index" ,
40+ Example : " " + commands . AppName + " core update-index" ,
4141 Args : cobra .NoArgs ,
4242 Run : runUpdateIndexCommand ,
4343 }
You can’t perform that action at this time.
0 commit comments