Commit 982a2712 authored by Cristian Maglie's avatar Cristian Maglie

Removed "flavour" option in 'board attach' command

parent 15bf593f
......@@ -39,15 +39,12 @@ func initAttachCommand() *cobra.Command {
Args: cobra.RangeArgs(1, 2),
Run: runAttachCommand,
}
attachCommand.Flags().StringVar(&attachFlags.boardFlavour, "flavour", "default",
"The Name of the CPU flavour, it is required for some boards (e.g. Arduino Nano).")
attachCommand.Flags().StringVar(&attachFlags.searchTimeout, "timeout", "5s",
"The timeout of the search of connected devices, try to high it if your board is not found (e.g. to 10s).")
return attachCommand
}
var attachFlags struct {
boardFlavour string // The flavor of the chipset of the cpu of the connected board, if not specified it is set to "default".
searchTimeout string // Expressed in a parsable duration, is the timeout for the list and attach commands.
}
......@@ -61,7 +58,6 @@ func runAttachCommand(cmd *cobra.Command, args []string) {
Instance: instance,
BoardUri: args[0],
SketchPath: path,
BoardFlavour: attachFlags.boardFlavour,
SearchTimeout: attachFlags.searchTimeout,
}, cli.OutputTaskProgress())
if err != nil {
......
This diff is collapsed.
......@@ -56,8 +56,7 @@ message BoardAttachReq {
Instance instance = 1;
string board_uri = 2;
string sketch_path = 3;
string board_flavour = 4;
string search_timeout = 5;
string search_timeout = 4;
}
message BoardAttachResp {
......
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