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 {
41
41
Short : "Attaches a sketch to a board." ,
42
42
Long : "Attaches a sketch to a board." ,
43
43
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" ,
46
46
Args : cobra .RangeArgs (1 , 2 ),
47
47
Run : runAttachCommand ,
48
48
}
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ func initListCommand() *cobra.Command {
35
35
Use : "list" ,
36
36
Short : "List connected boards." ,
37
37
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" ,
39
39
Args : cobra .NoArgs ,
40
40
Run : runListCommand ,
41
41
}
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ func initListAllCommand() *cobra.Command {
31
31
Use : "listall" ,
32
32
Short : "List all known boards." ,
33
33
Long : "List all boards that have the support platform installed." ,
34
- Example : "arduino board listall" ,
34
+ Example : " " + commands . AppName + " board listall" ,
35
35
Args : cobra .NoArgs ,
36
36
Run : runListAllCommand ,
37
37
}
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ func initDumpCommand() *cobra.Command {
32
32
Use : "dump" ,
33
33
Short : "Prints the current configuration" ,
34
34
Long : "Prints the current configuration." ,
35
- Example : "arduino config dump" ,
35
+ Example : " " + commands . AppName + " config dump" ,
36
36
Args : cobra .NoArgs ,
37
37
Run : runDumpCommand ,
38
38
}
Original file line number Diff line number Diff line change @@ -32,8 +32,10 @@ func initInitCommand() *cobra.Command {
32
32
Short : "Initializes a new config file into the default location." ,
33
33
Long : "Initializes a new config file into the default location ($EXE_DIR/cli-config.yml)." ,
34
34
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 " ,
37
39
Args : cobra .NoArgs ,
38
40
Run : runInitCommand ,
39
41
}
Original file line number Diff line number Diff line change @@ -34,8 +34,8 @@ func initDownloadCommand() *cobra.Command {
34
34
Short : "Downloads one or more cores and corresponding tool dependencies." ,
35
35
Long : "Downloads one or more cores and corresponding tool dependencies." ,
36
36
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)." ,
39
39
Args : cobra .MinimumNArgs (1 ),
40
40
Run : runDownloadCommand ,
41
41
}
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ import (
29
29
30
30
func initInstallCommand () * cobra.Command {
31
31
installCommand := & cobra.Command {
32
- Use : "install [ PACKAGER:ARCH[= VERSION]](S) " ,
32
+ Use : "install PACKAGER:ARCH[@ VERSION] ... " ,
33
33
Short : "Installs one or more cores and corresponding tool dependencies." ,
34
34
Long : "Installs one or more cores and corresponding tool dependencies." ,
35
35
Example : "" +
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ func initListCommand() *cobra.Command {
31
31
Short : "Shows the list of installed cores." ,
32
32
Long : "Shows the list of installed cores.\n " +
33
33
"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." ,
35
35
Args : cobra .NoArgs ,
36
36
Run : runListCommand ,
37
37
}
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ func initSearchCommand() *cobra.Command {
32
32
Use : "search <keywords...>" ,
33
33
Short : "Search for a core in the package index." ,
34
34
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" ,
36
36
Args : cobra .MinimumNArgs (1 ),
37
37
Run : runSearchCommand ,
38
38
}
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ func initUpdateIndexCommand() *cobra.Command {
37
37
Use : "update-index" ,
38
38
Short : "Updates the index of cores." ,
39
39
Long : "Updates the index of cores to the latest version." ,
40
- Example : "arduino core update-index" ,
40
+ Example : " " + commands . AppName + " core update-index" ,
41
41
Args : cobra .NoArgs ,
42
42
Run : runUpdateIndexCommand ,
43
43
}
You can’t perform that action at this time.
0 commit comments