From 512e8849bd4178505538af4cd5b9bbf744cadd64 Mon Sep 17 00:00:00 2001 From: Massimiliano Pippi Date: Thu, 13 Jun 2019 16:35:34 +0200 Subject: [PATCH 1/8] move protobuf definitions under rpc/commands --- Taskfile.yml | 5 + cli/board/attach.go | 2 +- cli/board/details.go | 2 +- cli/board/list.go | 2 +- cli/board/listall.go | 2 +- cli/cli.go | 2 +- cli/compile/compile.go | 2 +- cli/core/download.go | 2 +- cli/core/install.go | 2 +- cli/core/list.go | 2 +- cli/core/search.go | 2 +- cli/core/uninstall.go | 2 +- cli/core/update_index.go | 2 +- cli/core/upgrade.go | 2 +- cli/daemon/daemon.go | 2 +- cli/lib/download.go | 2 +- cli/lib/install.go | 2 +- cli/lib/list.go | 2 +- cli/lib/search.go | 2 +- cli/lib/uninstall.go | 2 +- cli/lib/update_index.go | 2 +- cli/lib/upgrade.go | 2 +- cli/output.go | 2 +- cli/upload/upload.go | 2 +- commands/board/attach.go | 2 +- commands/board/details.go | 2 +- commands/board/list.go | 2 +- commands/board/listall.go | 2 +- commands/bundled_tools.go | 2 +- commands/compile/compile.go | 2 +- commands/core/download.go | 2 +- commands/core/install.go | 2 +- commands/core/list.go | 2 +- commands/core/search.go | 2 +- commands/core/uninstall.go | 2 +- commands/core/upgrade.go | 2 +- commands/instances.go | 2 +- commands/lib/download.go | 2 +- commands/lib/install.go | 2 +- commands/lib/list.go | 2 +- commands/lib/search.go | 2 +- commands/lib/uninstall.go | 2 +- commands/lib/upgrade.go | 2 +- commands/progress.go | 2 +- commands/upload/upload.go | 2 +- daemon/client/client.go | 2 +- daemon/daemon.go | 2 +- output/rpc_progress.go | 2 +- rpc/{ => commands}/board.pb.go | 224 ++++++++-------- rpc/{ => commands}/board.proto | 6 +- rpc/{ => commands}/commands.pb.go | 420 ++++++++++++++++++------------ rpc/{ => commands}/commands.proto | 16 +- rpc/{ => commands}/common.pb.go | 86 +++--- rpc/{ => commands}/common.proto | 4 +- rpc/{ => commands}/compile.pb.go | 91 ++++--- rpc/{ => commands}/compile.proto | 6 +- rpc/{ => commands}/core.pb.go | 219 +++++++++------- rpc/{ => commands}/core.proto | 6 +- rpc/{ => commands}/lib.pb.go | 333 ++++++++++++----------- rpc/{ => commands}/lib.proto | 6 +- rpc/{ => commands}/upload.pb.go | 81 +++--- rpc/{ => commands}/upload.proto | 6 +- rpc/rpc.go | 29 --- 63 files changed, 887 insertions(+), 745 deletions(-) rename rpc/{ => commands}/board.pb.go (71%) rename rpc/{ => commands}/board.proto (93%) rename rpc/{ => commands}/commands.pb.go (75%) rename rpc/{ => commands}/commands.proto (93%) rename rpc/{ => commands}/common.pb.go (64%) rename rpc/{ => commands}/common.proto (90%) rename rpc/{ => commands}/compile.pb.go (63%) rename rpc/{ => commands}/compile.proto (93%) rename rpc/{ => commands}/core.pb.go (75%) rename rpc/{ => commands}/core.proto (94%) rename rpc/{ => commands}/lib.pb.go (73%) rename rpc/{ => commands}/lib.proto (96%) rename rpc/{ => commands}/upload.pb.go (60%) rename rpc/{ => commands}/upload.proto (88%) delete mode 100644 rpc/rpc.go diff --git a/Taskfile.yml b/Taskfile.yml index b7ecbb9212d..424c0d8739a 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -1,6 +1,11 @@ version: '2' tasks: + protoc: + desc: Compile protobuf definitions + cmds: + - protoc --proto_path=rpc --go_out=plugins=grpc,paths=source_relative:rpc ./rpc/commands/*.proto + build: desc: Build the project cmds: diff --git a/cli/board/attach.go b/cli/board/attach.go index a1fc5563a79..1f21734ad66 100644 --- a/cli/board/attach.go +++ b/cli/board/attach.go @@ -24,7 +24,7 @@ import ( "github.com/arduino/arduino-cli/cli" "github.com/arduino/arduino-cli/commands/board" "github.com/arduino/arduino-cli/common/formatter" - "github.com/arduino/arduino-cli/rpc" + rpc "github.com/arduino/arduino-cli/rpc/commands" "github.com/spf13/cobra" ) diff --git a/cli/board/details.go b/cli/board/details.go index 5239a9be999..bc1a2a6a740 100644 --- a/cli/board/details.go +++ b/cli/board/details.go @@ -26,7 +26,7 @@ import ( "github.com/arduino/arduino-cli/commands/board" "github.com/arduino/arduino-cli/common/formatter" "github.com/arduino/arduino-cli/output" - "github.com/arduino/arduino-cli/rpc" + rpc "github.com/arduino/arduino-cli/rpc/commands" "github.com/spf13/cobra" ) diff --git a/cli/board/list.go b/cli/board/list.go index 280c0eb6db8..6c72a5433de 100644 --- a/cli/board/list.go +++ b/cli/board/list.go @@ -28,7 +28,7 @@ import ( "github.com/arduino/arduino-cli/commands/board" "github.com/arduino/arduino-cli/common/formatter" "github.com/arduino/arduino-cli/output" - "github.com/arduino/arduino-cli/rpc" + rpc "github.com/arduino/arduino-cli/rpc/commands" "github.com/spf13/cobra" ) diff --git a/cli/board/listall.go b/cli/board/listall.go index 533d33eeda3..1da6c73bf06 100644 --- a/cli/board/listall.go +++ b/cli/board/listall.go @@ -27,7 +27,7 @@ import ( "github.com/arduino/arduino-cli/commands/board" "github.com/arduino/arduino-cli/common/formatter" "github.com/arduino/arduino-cli/output" - "github.com/arduino/arduino-cli/rpc" + rpc "github.com/arduino/arduino-cli/rpc/commands" "github.com/spf13/cobra" ) diff --git a/cli/cli.go b/cli/cli.go index cafc6b87a22..5d2dd0666db 100644 --- a/cli/cli.go +++ b/cli/cli.go @@ -31,7 +31,7 @@ import ( "github.com/arduino/arduino-cli/commands" "github.com/arduino/arduino-cli/common/formatter" "github.com/arduino/arduino-cli/configs" - "github.com/arduino/arduino-cli/rpc" + rpc "github.com/arduino/arduino-cli/rpc/commands" "github.com/arduino/arduino-cli/version" "github.com/arduino/go-paths-helper" "github.com/sirupsen/logrus" diff --git a/cli/compile/compile.go b/cli/compile/compile.go index d01274dce98..98e9eeeaf13 100644 --- a/cli/compile/compile.go +++ b/cli/compile/compile.go @@ -24,7 +24,7 @@ import ( "github.com/arduino/arduino-cli/cli" "github.com/arduino/arduino-cli/commands/compile" "github.com/arduino/arduino-cli/common/formatter" - "github.com/arduino/arduino-cli/rpc" + rpc "github.com/arduino/arduino-cli/rpc/commands" "github.com/arduino/go-paths-helper" "github.com/spf13/cobra" ) diff --git a/cli/core/download.go b/cli/core/download.go index 0808baf6af0..e5cbbbb6962 100644 --- a/cli/core/download.go +++ b/cli/core/download.go @@ -24,7 +24,7 @@ import ( "github.com/arduino/arduino-cli/cli" "github.com/arduino/arduino-cli/commands/core" "github.com/arduino/arduino-cli/common/formatter" - "github.com/arduino/arduino-cli/rpc" + rpc "github.com/arduino/arduino-cli/rpc/commands" "github.com/sirupsen/logrus" "github.com/spf13/cobra" ) diff --git a/cli/core/install.go b/cli/core/install.go index 0a74d5afc72..46d294bccb3 100644 --- a/cli/core/install.go +++ b/cli/core/install.go @@ -24,7 +24,7 @@ import ( "github.com/arduino/arduino-cli/cli" "github.com/arduino/arduino-cli/commands/core" "github.com/arduino/arduino-cli/common/formatter" - "github.com/arduino/arduino-cli/rpc" + rpc "github.com/arduino/arduino-cli/rpc/commands" "github.com/sirupsen/logrus" "github.com/spf13/cobra" ) diff --git a/cli/core/list.go b/cli/core/list.go index 91efcd6c4cf..a7444d9cb9c 100644 --- a/cli/core/list.go +++ b/cli/core/list.go @@ -27,7 +27,7 @@ import ( "github.com/arduino/arduino-cli/commands/core" "github.com/arduino/arduino-cli/common/formatter" "github.com/arduino/arduino-cli/output" - "github.com/arduino/arduino-cli/rpc" + rpc "github.com/arduino/arduino-cli/rpc/commands" "github.com/sirupsen/logrus" "github.com/spf13/cobra" ) diff --git a/cli/core/search.go b/cli/core/search.go index 0f752189357..d09978ae4d6 100644 --- a/cli/core/search.go +++ b/cli/core/search.go @@ -28,7 +28,7 @@ import ( "github.com/arduino/arduino-cli/commands/core" "github.com/arduino/arduino-cli/common/formatter" "github.com/arduino/arduino-cli/output" - "github.com/arduino/arduino-cli/rpc" + rpc "github.com/arduino/arduino-cli/rpc/commands" "github.com/sirupsen/logrus" "github.com/spf13/cobra" ) diff --git a/cli/core/uninstall.go b/cli/core/uninstall.go index 90e0472731d..c5b15eb9c93 100644 --- a/cli/core/uninstall.go +++ b/cli/core/uninstall.go @@ -25,7 +25,7 @@ import ( "github.com/arduino/arduino-cli/commands/core" "github.com/arduino/arduino-cli/common/formatter" "github.com/arduino/arduino-cli/output" - "github.com/arduino/arduino-cli/rpc" + rpc "github.com/arduino/arduino-cli/rpc/commands" "github.com/sirupsen/logrus" "github.com/spf13/cobra" ) diff --git a/cli/core/update_index.go b/cli/core/update_index.go index 13d832343f1..f42ad3867f6 100644 --- a/cli/core/update_index.go +++ b/cli/core/update_index.go @@ -24,7 +24,7 @@ import ( "github.com/arduino/arduino-cli/cli" "github.com/arduino/arduino-cli/commands" "github.com/arduino/arduino-cli/common/formatter" - "github.com/arduino/arduino-cli/rpc" + rpc "github.com/arduino/arduino-cli/rpc/commands" "github.com/sirupsen/logrus" "github.com/spf13/cobra" ) diff --git a/cli/core/upgrade.go b/cli/core/upgrade.go index cbf74215ffa..f6ed8e28591 100644 --- a/cli/core/upgrade.go +++ b/cli/core/upgrade.go @@ -24,7 +24,7 @@ import ( "github.com/arduino/arduino-cli/cli" "github.com/arduino/arduino-cli/commands/core" "github.com/arduino/arduino-cli/common/formatter" - "github.com/arduino/arduino-cli/rpc" + rpc "github.com/arduino/arduino-cli/rpc/commands" "github.com/sirupsen/logrus" "github.com/spf13/cobra" ) diff --git a/cli/daemon/daemon.go b/cli/daemon/daemon.go index 69452e8503f..60875866628 100644 --- a/cli/daemon/daemon.go +++ b/cli/daemon/daemon.go @@ -26,7 +26,7 @@ import ( "github.com/arduino/arduino-cli/cli" "github.com/arduino/arduino-cli/daemon" - "github.com/arduino/arduino-cli/rpc" + rpc "github.com/arduino/arduino-cli/rpc/commands" "github.com/spf13/cobra" "google.golang.org/grpc" ) diff --git a/cli/lib/download.go b/cli/lib/download.go index 3778f32cb94..acd384eb9df 100644 --- a/cli/lib/download.go +++ b/cli/lib/download.go @@ -25,7 +25,7 @@ import ( "github.com/arduino/arduino-cli/cli" "github.com/arduino/arduino-cli/commands/lib" "github.com/arduino/arduino-cli/common/formatter" - "github.com/arduino/arduino-cli/rpc" + rpc "github.com/arduino/arduino-cli/rpc/commands" "github.com/spf13/cobra" ) diff --git a/cli/lib/install.go b/cli/lib/install.go index e534e6e2164..94c863d034b 100644 --- a/cli/lib/install.go +++ b/cli/lib/install.go @@ -25,7 +25,7 @@ import ( "github.com/arduino/arduino-cli/cli" "github.com/arduino/arduino-cli/commands/lib" "github.com/arduino/arduino-cli/common/formatter" - "github.com/arduino/arduino-cli/rpc" + rpc "github.com/arduino/arduino-cli/rpc/commands" "github.com/spf13/cobra" ) diff --git a/cli/lib/list.go b/cli/lib/list.go index 5766ad19fa8..b75705c3fb5 100644 --- a/cli/lib/list.go +++ b/cli/lib/list.go @@ -24,7 +24,7 @@ import ( "github.com/arduino/arduino-cli/cli" "github.com/arduino/arduino-cli/commands/lib" "github.com/arduino/arduino-cli/common/formatter" - "github.com/arduino/arduino-cli/rpc" + rpc "github.com/arduino/arduino-cli/rpc/commands" "github.com/gosuri/uitable" "github.com/sirupsen/logrus" "github.com/spf13/cobra" diff --git a/cli/lib/search.go b/cli/lib/search.go index 674f018eb01..552dfbe25f4 100644 --- a/cli/lib/search.go +++ b/cli/lib/search.go @@ -27,7 +27,7 @@ import ( "github.com/arduino/arduino-cli/cli" "github.com/arduino/arduino-cli/commands/lib" "github.com/arduino/arduino-cli/common/formatter" - "github.com/arduino/arduino-cli/rpc" + rpc "github.com/arduino/arduino-cli/rpc/commands" "github.com/sirupsen/logrus" "github.com/spf13/cobra" semver "go.bug.st/relaxed-semver" diff --git a/cli/lib/uninstall.go b/cli/lib/uninstall.go index 6c38a93c9a6..0a5f1b79291 100644 --- a/cli/lib/uninstall.go +++ b/cli/lib/uninstall.go @@ -25,7 +25,7 @@ import ( "github.com/arduino/arduino-cli/cli" "github.com/arduino/arduino-cli/commands/lib" "github.com/arduino/arduino-cli/common/formatter" - "github.com/arduino/arduino-cli/rpc" + rpc "github.com/arduino/arduino-cli/rpc/commands" "github.com/sirupsen/logrus" "github.com/spf13/cobra" ) diff --git a/cli/lib/update_index.go b/cli/lib/update_index.go index 6c7f22a3b62..e07ebe16f29 100644 --- a/cli/lib/update_index.go +++ b/cli/lib/update_index.go @@ -24,7 +24,7 @@ import ( "github.com/arduino/arduino-cli/cli" "github.com/arduino/arduino-cli/commands" "github.com/arduino/arduino-cli/common/formatter" - "github.com/arduino/arduino-cli/rpc" + rpc "github.com/arduino/arduino-cli/rpc/commands" "github.com/spf13/cobra" ) diff --git a/cli/lib/upgrade.go b/cli/lib/upgrade.go index 95c59310b41..1bd0fc83b9a 100644 --- a/cli/lib/upgrade.go +++ b/cli/lib/upgrade.go @@ -23,7 +23,7 @@ import ( "github.com/arduino/arduino-cli/cli" "github.com/arduino/arduino-cli/commands/lib" "github.com/arduino/arduino-cli/common/formatter" - "github.com/arduino/arduino-cli/rpc" + rpc "github.com/arduino/arduino-cli/rpc/commands" "github.com/sirupsen/logrus" "github.com/spf13/cobra" "golang.org/x/net/context" diff --git a/cli/output.go b/cli/output.go index bcbcf940142..20a23819286 100644 --- a/cli/output.go +++ b/cli/output.go @@ -25,7 +25,7 @@ import ( "github.com/arduino/arduino-cli/commands" "github.com/arduino/arduino-cli/common/formatter" "github.com/arduino/arduino-cli/output" - "github.com/arduino/arduino-cli/rpc" + rpc "github.com/arduino/arduino-cli/rpc/commands" ) // OutputJSONOrElse outputs the JSON encoding of v if the JSON output format has been diff --git a/cli/upload/upload.go b/cli/upload/upload.go index 23f264dab70..f69a451cc7d 100644 --- a/cli/upload/upload.go +++ b/cli/upload/upload.go @@ -24,7 +24,7 @@ import ( "github.com/arduino/arduino-cli/cli" "github.com/arduino/arduino-cli/commands/upload" "github.com/arduino/arduino-cli/common/formatter" - "github.com/arduino/arduino-cli/rpc" + rpc "github.com/arduino/arduino-cli/rpc/commands" "github.com/arduino/go-paths-helper" "github.com/spf13/cobra" ) diff --git a/commands/board/attach.go b/commands/board/attach.go index bf8cb7a902c..fecdba8a8e0 100644 --- a/commands/board/attach.go +++ b/commands/board/attach.go @@ -29,7 +29,7 @@ import ( "github.com/arduino/arduino-cli/arduino/cores/packagemanager" "github.com/arduino/arduino-cli/arduino/sketches" "github.com/arduino/arduino-cli/commands" - "github.com/arduino/arduino-cli/rpc" + rpc "github.com/arduino/arduino-cli/rpc/commands" discovery "github.com/arduino/board-discovery" paths "github.com/arduino/go-paths-helper" ) diff --git a/commands/board/details.go b/commands/board/details.go index e350687330c..4edf1a8cb72 100644 --- a/commands/board/details.go +++ b/commands/board/details.go @@ -24,7 +24,7 @@ import ( "github.com/arduino/arduino-cli/arduino/cores" "github.com/arduino/arduino-cli/commands" - "github.com/arduino/arduino-cli/rpc" + rpc "github.com/arduino/arduino-cli/rpc/commands" ) // Details FIXMEDOC diff --git a/commands/board/list.go b/commands/board/list.go index 389af5805ee..3254a38933b 100644 --- a/commands/board/list.go +++ b/commands/board/list.go @@ -23,7 +23,7 @@ import ( "fmt" "github.com/arduino/arduino-cli/commands" - "github.com/arduino/arduino-cli/rpc" + rpc "github.com/arduino/arduino-cli/rpc/commands" ) // List FIXMEDOC diff --git a/commands/board/listall.go b/commands/board/listall.go index f488ac0d3c8..7d2dcbc4f1b 100644 --- a/commands/board/listall.go +++ b/commands/board/listall.go @@ -23,7 +23,7 @@ import ( "strings" "github.com/arduino/arduino-cli/commands" - "github.com/arduino/arduino-cli/rpc" + rpc "github.com/arduino/arduino-cli/rpc/commands" ) // ListAll FIXMEDOC diff --git a/commands/bundled_tools.go b/commands/bundled_tools.go index 41b430858f1..3e155048fdd 100644 --- a/commands/bundled_tools.go +++ b/commands/bundled_tools.go @@ -23,7 +23,7 @@ import ( "github.com/arduino/arduino-cli/arduino/cores" "github.com/arduino/arduino-cli/arduino/cores/packagemanager" - "github.com/arduino/arduino-cli/rpc" + rpc "github.com/arduino/arduino-cli/rpc/commands" ) // DownloadToolRelease downloads a ToolRelease diff --git a/commands/compile/compile.go b/commands/compile/compile.go index bbb9eb2a607..4d2a80f699d 100644 --- a/commands/compile/compile.go +++ b/commands/compile/compile.go @@ -34,7 +34,7 @@ import ( "github.com/arduino/arduino-cli/legacy/builder" "github.com/arduino/arduino-cli/legacy/builder/i18n" "github.com/arduino/arduino-cli/legacy/builder/types" - "github.com/arduino/arduino-cli/rpc" + rpc "github.com/arduino/arduino-cli/rpc/commands" paths "github.com/arduino/go-paths-helper" properties "github.com/arduino/go-properties-orderedmap" "github.com/sirupsen/logrus" diff --git a/commands/core/download.go b/commands/core/download.go index 787dc0b23ad..705e4a78e2a 100644 --- a/commands/core/download.go +++ b/commands/core/download.go @@ -26,7 +26,7 @@ import ( "github.com/arduino/arduino-cli/arduino/cores" "github.com/arduino/arduino-cli/arduino/cores/packagemanager" "github.com/arduino/arduino-cli/commands" - "github.com/arduino/arduino-cli/rpc" + rpc "github.com/arduino/arduino-cli/rpc/commands" ) // PlatformDownload FIXMEDOC diff --git a/commands/core/install.go b/commands/core/install.go index 876162aae61..c62e3dd1727 100644 --- a/commands/core/install.go +++ b/commands/core/install.go @@ -26,7 +26,7 @@ import ( "github.com/arduino/arduino-cli/arduino/cores" "github.com/arduino/arduino-cli/arduino/cores/packagemanager" "github.com/arduino/arduino-cli/commands" - "github.com/arduino/arduino-cli/rpc" + rpc "github.com/arduino/arduino-cli/rpc/commands" ) // PlatformInstall FIXMEDOC diff --git a/commands/core/list.go b/commands/core/list.go index 591a1819d50..dd31cb2b683 100644 --- a/commands/core/list.go +++ b/commands/core/list.go @@ -22,7 +22,7 @@ import ( "errors" "github.com/arduino/arduino-cli/commands" - "github.com/arduino/arduino-cli/rpc" + rpc "github.com/arduino/arduino-cli/rpc/commands" ) // PlatformList FIXMEDOC diff --git a/commands/core/search.go b/commands/core/search.go index 80dfdda0db0..896e5557ecd 100644 --- a/commands/core/search.go +++ b/commands/core/search.go @@ -25,7 +25,7 @@ import ( "github.com/arduino/arduino-cli/arduino/cores" "github.com/arduino/arduino-cli/commands" - "github.com/arduino/arduino-cli/rpc" + rpc "github.com/arduino/arduino-cli/rpc/commands" ) // PlatformSearch FIXMEDOC diff --git a/commands/core/uninstall.go b/commands/core/uninstall.go index 2b8b75a62fe..875665f04a1 100644 --- a/commands/core/uninstall.go +++ b/commands/core/uninstall.go @@ -25,7 +25,7 @@ import ( "github.com/arduino/arduino-cli/arduino/cores" "github.com/arduino/arduino-cli/arduino/cores/packagemanager" "github.com/arduino/arduino-cli/commands" - "github.com/arduino/arduino-cli/rpc" + rpc "github.com/arduino/arduino-cli/rpc/commands" ) // PlatformUninstall FIXMEDOC diff --git a/commands/core/upgrade.go b/commands/core/upgrade.go index ad430831ace..93d2a221383 100644 --- a/commands/core/upgrade.go +++ b/commands/core/upgrade.go @@ -25,7 +25,7 @@ import ( "github.com/arduino/arduino-cli/arduino/cores/packagemanager" "github.com/arduino/arduino-cli/commands" - "github.com/arduino/arduino-cli/rpc" + rpc "github.com/arduino/arduino-cli/rpc/commands" ) // PlatformUpgrade FIXMEDOC diff --git a/commands/instances.go b/commands/instances.go index d3eb0cccffd..beffde1a9af 100644 --- a/commands/instances.go +++ b/commands/instances.go @@ -33,7 +33,7 @@ import ( "github.com/arduino/arduino-cli/arduino/libraries" "github.com/arduino/arduino-cli/arduino/libraries/librariesmanager" "github.com/arduino/arduino-cli/configs" - "github.com/arduino/arduino-cli/rpc" + rpc "github.com/arduino/arduino-cli/rpc/commands" paths "github.com/arduino/go-paths-helper" "github.com/sirupsen/logrus" "go.bug.st/downloader" diff --git a/commands/lib/download.go b/commands/lib/download.go index fbc24a4cc53..0ec3d966862 100644 --- a/commands/lib/download.go +++ b/commands/lib/download.go @@ -25,7 +25,7 @@ import ( "github.com/arduino/arduino-cli/arduino/libraries/librariesindex" "github.com/arduino/arduino-cli/arduino/libraries/librariesmanager" "github.com/arduino/arduino-cli/commands" - "github.com/arduino/arduino-cli/rpc" + rpc "github.com/arduino/arduino-cli/rpc/commands" "github.com/sirupsen/logrus" ) diff --git a/commands/lib/install.go b/commands/lib/install.go index a9212b6b963..0c9a56e645e 100644 --- a/commands/lib/install.go +++ b/commands/lib/install.go @@ -25,7 +25,7 @@ import ( "github.com/arduino/arduino-cli/arduino/libraries/librariesindex" "github.com/arduino/arduino-cli/arduino/libraries/librariesmanager" "github.com/arduino/arduino-cli/commands" - "github.com/arduino/arduino-cli/rpc" + rpc "github.com/arduino/arduino-cli/rpc/commands" "github.com/sirupsen/logrus" ) diff --git a/commands/lib/list.go b/commands/lib/list.go index b0c726b6ff3..cefeb86f4ee 100644 --- a/commands/lib/list.go +++ b/commands/lib/list.go @@ -24,7 +24,7 @@ import ( "github.com/arduino/arduino-cli/arduino/libraries/librariesindex" "github.com/arduino/arduino-cli/arduino/libraries/librariesmanager" "github.com/arduino/arduino-cli/commands" - "github.com/arduino/arduino-cli/rpc" + rpc "github.com/arduino/arduino-cli/rpc/commands" ) type installedLib struct { diff --git a/commands/lib/search.go b/commands/lib/search.go index 342ca6052e7..d491dc3ca3a 100644 --- a/commands/lib/search.go +++ b/commands/lib/search.go @@ -24,7 +24,7 @@ import ( "github.com/arduino/arduino-cli/arduino/libraries/librariesindex" "github.com/arduino/arduino-cli/commands" - "github.com/arduino/arduino-cli/rpc" + rpc "github.com/arduino/arduino-cli/rpc/commands" ) // LibrarySearch FIXMEDOC diff --git a/commands/lib/uninstall.go b/commands/lib/uninstall.go index 3c23c64b200..ae4808694d2 100644 --- a/commands/lib/uninstall.go +++ b/commands/lib/uninstall.go @@ -22,7 +22,7 @@ import ( "fmt" "github.com/arduino/arduino-cli/commands" - "github.com/arduino/arduino-cli/rpc" + rpc "github.com/arduino/arduino-cli/rpc/commands" ) // LibraryUninstall FIXMEDOC diff --git a/commands/lib/upgrade.go b/commands/lib/upgrade.go index 4150fb8433e..8f74efa3128 100644 --- a/commands/lib/upgrade.go +++ b/commands/lib/upgrade.go @@ -23,7 +23,7 @@ import ( "net/http" "github.com/arduino/arduino-cli/commands" - "github.com/arduino/arduino-cli/rpc" + rpc "github.com/arduino/arduino-cli/rpc/commands" ) // LibraryUpgradeAll FIXMEDOC diff --git a/commands/progress.go b/commands/progress.go index 61d4dd895ba..272565ebe9a 100644 --- a/commands/progress.go +++ b/commands/progress.go @@ -17,7 +17,7 @@ package commands -import "github.com/arduino/arduino-cli/rpc" +import rpc "github.com/arduino/arduino-cli/rpc/commands" // DownloadProgressCB is a callback to get updates on download progress type DownloadProgressCB func(curr *rpc.DownloadProgress) diff --git a/commands/upload/upload.go b/commands/upload/upload.go index c167ef4efd2..e3dbe1929ad 100644 --- a/commands/upload/upload.go +++ b/commands/upload/upload.go @@ -31,7 +31,7 @@ import ( "github.com/arduino/arduino-cli/commands" "github.com/arduino/arduino-cli/common/formatter" "github.com/arduino/arduino-cli/executils" - "github.com/arduino/arduino-cli/rpc" + rpc "github.com/arduino/arduino-cli/rpc/commands" paths "github.com/arduino/go-paths-helper" properties "github.com/arduino/go-properties-orderedmap" "github.com/sirupsen/logrus" diff --git a/daemon/client/client.go b/daemon/client/client.go index baf4e3ffbb0..8f576e3852f 100644 --- a/daemon/client/client.go +++ b/daemon/client/client.go @@ -24,7 +24,7 @@ import ( "os" "github.com/arduino/arduino-cli/common/formatter" - "github.com/arduino/arduino-cli/rpc" + rpc "github.com/arduino/arduino-cli/rpc/commands" "google.golang.org/grpc" ) diff --git a/daemon/daemon.go b/daemon/daemon.go index 12a1e0ee45d..6ebd8929005 100644 --- a/daemon/daemon.go +++ b/daemon/daemon.go @@ -32,7 +32,7 @@ import ( "github.com/arduino/arduino-cli/commands/core" "github.com/arduino/arduino-cli/commands/lib" "github.com/arduino/arduino-cli/commands/upload" - "github.com/arduino/arduino-cli/rpc" + rpc "github.com/arduino/arduino-cli/rpc/commands" ) // ArduinoCoreServerImpl FIXMEDOC diff --git a/output/rpc_progress.go b/output/rpc_progress.go index d86c124f7c9..d5be3953190 100644 --- a/output/rpc_progress.go +++ b/output/rpc_progress.go @@ -20,7 +20,7 @@ package output import ( "fmt" - "github.com/arduino/arduino-cli/rpc" + rpc "github.com/arduino/arduino-cli/rpc/commands" "github.com/cmaglie/pb" ) diff --git a/rpc/board.pb.go b/rpc/commands/board.pb.go similarity index 71% rename from rpc/board.pb.go rename to rpc/commands/board.pb.go index 41a236623fe..33314fae378 100644 --- a/rpc/board.pb.go +++ b/rpc/commands/board.pb.go @@ -1,11 +1,13 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: board.proto +// source: commands/board.proto -package rpc // import "github.com/arduino/arduino-cli/rpc" +package commands -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal @@ -16,7 +18,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type BoardDetailsReq struct { Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` @@ -30,16 +32,17 @@ func (m *BoardDetailsReq) Reset() { *m = BoardDetailsReq{} } func (m *BoardDetailsReq) String() string { return proto.CompactTextString(m) } func (*BoardDetailsReq) ProtoMessage() {} func (*BoardDetailsReq) Descriptor() ([]byte, []int) { - return fileDescriptor_board_e8338ee96363d0b7, []int{0} + return fileDescriptor_0882eeddaa6507ab, []int{0} } + func (m *BoardDetailsReq) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_BoardDetailsReq.Unmarshal(m, b) } func (m *BoardDetailsReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_BoardDetailsReq.Marshal(b, m, deterministic) } -func (dst *BoardDetailsReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_BoardDetailsReq.Merge(dst, src) +func (m *BoardDetailsReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_BoardDetailsReq.Merge(m, src) } func (m *BoardDetailsReq) XXX_Size() int { return xxx_messageInfo_BoardDetailsReq.Size(m) @@ -77,16 +80,17 @@ func (m *BoardDetailsResp) Reset() { *m = BoardDetailsResp{} } func (m *BoardDetailsResp) String() string { return proto.CompactTextString(m) } func (*BoardDetailsResp) ProtoMessage() {} func (*BoardDetailsResp) Descriptor() ([]byte, []int) { - return fileDescriptor_board_e8338ee96363d0b7, []int{1} + return fileDescriptor_0882eeddaa6507ab, []int{1} } + func (m *BoardDetailsResp) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_BoardDetailsResp.Unmarshal(m, b) } func (m *BoardDetailsResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_BoardDetailsResp.Marshal(b, m, deterministic) } -func (dst *BoardDetailsResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_BoardDetailsResp.Merge(dst, src) +func (m *BoardDetailsResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_BoardDetailsResp.Merge(m, src) } func (m *BoardDetailsResp) XXX_Size() int { return xxx_messageInfo_BoardDetailsResp.Size(m) @@ -131,16 +135,17 @@ func (m *ConfigOption) Reset() { *m = ConfigOption{} } func (m *ConfigOption) String() string { return proto.CompactTextString(m) } func (*ConfigOption) ProtoMessage() {} func (*ConfigOption) Descriptor() ([]byte, []int) { - return fileDescriptor_board_e8338ee96363d0b7, []int{2} + return fileDescriptor_0882eeddaa6507ab, []int{2} } + func (m *ConfigOption) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ConfigOption.Unmarshal(m, b) } func (m *ConfigOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ConfigOption.Marshal(b, m, deterministic) } -func (dst *ConfigOption) XXX_Merge(src proto.Message) { - xxx_messageInfo_ConfigOption.Merge(dst, src) +func (m *ConfigOption) XXX_Merge(src proto.Message) { + xxx_messageInfo_ConfigOption.Merge(m, src) } func (m *ConfigOption) XXX_Size() int { return xxx_messageInfo_ConfigOption.Size(m) @@ -185,16 +190,17 @@ func (m *ConfigValue) Reset() { *m = ConfigValue{} } func (m *ConfigValue) String() string { return proto.CompactTextString(m) } func (*ConfigValue) ProtoMessage() {} func (*ConfigValue) Descriptor() ([]byte, []int) { - return fileDescriptor_board_e8338ee96363d0b7, []int{3} + return fileDescriptor_0882eeddaa6507ab, []int{3} } + func (m *ConfigValue) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ConfigValue.Unmarshal(m, b) } func (m *ConfigValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ConfigValue.Marshal(b, m, deterministic) } -func (dst *ConfigValue) XXX_Merge(src proto.Message) { - xxx_messageInfo_ConfigValue.Merge(dst, src) +func (m *ConfigValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_ConfigValue.Merge(m, src) } func (m *ConfigValue) XXX_Size() int { return xxx_messageInfo_ConfigValue.Size(m) @@ -239,16 +245,17 @@ func (m *RequiredTool) Reset() { *m = RequiredTool{} } func (m *RequiredTool) String() string { return proto.CompactTextString(m) } func (*RequiredTool) ProtoMessage() {} func (*RequiredTool) Descriptor() ([]byte, []int) { - return fileDescriptor_board_e8338ee96363d0b7, []int{4} + return fileDescriptor_0882eeddaa6507ab, []int{4} } + func (m *RequiredTool) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_RequiredTool.Unmarshal(m, b) } func (m *RequiredTool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_RequiredTool.Marshal(b, m, deterministic) } -func (dst *RequiredTool) XXX_Merge(src proto.Message) { - xxx_messageInfo_RequiredTool.Merge(dst, src) +func (m *RequiredTool) XXX_Merge(src proto.Message) { + xxx_messageInfo_RequiredTool.Merge(m, src) } func (m *RequiredTool) XXX_Size() int { return xxx_messageInfo_RequiredTool.Size(m) @@ -294,16 +301,17 @@ func (m *BoardAttachReq) Reset() { *m = BoardAttachReq{} } func (m *BoardAttachReq) String() string { return proto.CompactTextString(m) } func (*BoardAttachReq) ProtoMessage() {} func (*BoardAttachReq) Descriptor() ([]byte, []int) { - return fileDescriptor_board_e8338ee96363d0b7, []int{5} + return fileDescriptor_0882eeddaa6507ab, []int{5} } + func (m *BoardAttachReq) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_BoardAttachReq.Unmarshal(m, b) } func (m *BoardAttachReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_BoardAttachReq.Marshal(b, m, deterministic) } -func (dst *BoardAttachReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_BoardAttachReq.Merge(dst, src) +func (m *BoardAttachReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_BoardAttachReq.Merge(m, src) } func (m *BoardAttachReq) XXX_Size() int { return xxx_messageInfo_BoardAttachReq.Size(m) @@ -353,16 +361,17 @@ func (m *BoardAttachResp) Reset() { *m = BoardAttachResp{} } func (m *BoardAttachResp) String() string { return proto.CompactTextString(m) } func (*BoardAttachResp) ProtoMessage() {} func (*BoardAttachResp) Descriptor() ([]byte, []int) { - return fileDescriptor_board_e8338ee96363d0b7, []int{6} + return fileDescriptor_0882eeddaa6507ab, []int{6} } + func (m *BoardAttachResp) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_BoardAttachResp.Unmarshal(m, b) } func (m *BoardAttachResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_BoardAttachResp.Marshal(b, m, deterministic) } -func (dst *BoardAttachResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_BoardAttachResp.Merge(dst, src) +func (m *BoardAttachResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_BoardAttachResp.Merge(m, src) } func (m *BoardAttachResp) XXX_Size() int { return xxx_messageInfo_BoardAttachResp.Size(m) @@ -391,16 +400,17 @@ func (m *BoardListReq) Reset() { *m = BoardListReq{} } func (m *BoardListReq) String() string { return proto.CompactTextString(m) } func (*BoardListReq) ProtoMessage() {} func (*BoardListReq) Descriptor() ([]byte, []int) { - return fileDescriptor_board_e8338ee96363d0b7, []int{7} + return fileDescriptor_0882eeddaa6507ab, []int{7} } + func (m *BoardListReq) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_BoardListReq.Unmarshal(m, b) } func (m *BoardListReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_BoardListReq.Marshal(b, m, deterministic) } -func (dst *BoardListReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_BoardListReq.Merge(dst, src) +func (m *BoardListReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_BoardListReq.Merge(m, src) } func (m *BoardListReq) XXX_Size() int { return xxx_messageInfo_BoardListReq.Size(m) @@ -429,16 +439,17 @@ func (m *BoardListResp) Reset() { *m = BoardListResp{} } func (m *BoardListResp) String() string { return proto.CompactTextString(m) } func (*BoardListResp) ProtoMessage() {} func (*BoardListResp) Descriptor() ([]byte, []int) { - return fileDescriptor_board_e8338ee96363d0b7, []int{8} + return fileDescriptor_0882eeddaa6507ab, []int{8} } + func (m *BoardListResp) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_BoardListResp.Unmarshal(m, b) } func (m *BoardListResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_BoardListResp.Marshal(b, m, deterministic) } -func (dst *BoardListResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_BoardListResp.Merge(dst, src) +func (m *BoardListResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_BoardListResp.Merge(m, src) } func (m *BoardListResp) XXX_Size() int { return xxx_messageInfo_BoardListResp.Size(m) @@ -470,16 +481,17 @@ func (m *DetectedPort) Reset() { *m = DetectedPort{} } func (m *DetectedPort) String() string { return proto.CompactTextString(m) } func (*DetectedPort) ProtoMessage() {} func (*DetectedPort) Descriptor() ([]byte, []int) { - return fileDescriptor_board_e8338ee96363d0b7, []int{9} + return fileDescriptor_0882eeddaa6507ab, []int{9} } + func (m *DetectedPort) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DetectedPort.Unmarshal(m, b) } func (m *DetectedPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_DetectedPort.Marshal(b, m, deterministic) } -func (dst *DetectedPort) XXX_Merge(src proto.Message) { - xxx_messageInfo_DetectedPort.Merge(dst, src) +func (m *DetectedPort) XXX_Merge(src proto.Message) { + xxx_messageInfo_DetectedPort.Merge(m, src) } func (m *DetectedPort) XXX_Size() int { return xxx_messageInfo_DetectedPort.Size(m) @@ -530,16 +542,17 @@ func (m *BoardListAllReq) Reset() { *m = BoardListAllReq{} } func (m *BoardListAllReq) String() string { return proto.CompactTextString(m) } func (*BoardListAllReq) ProtoMessage() {} func (*BoardListAllReq) Descriptor() ([]byte, []int) { - return fileDescriptor_board_e8338ee96363d0b7, []int{10} + return fileDescriptor_0882eeddaa6507ab, []int{10} } + func (m *BoardListAllReq) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_BoardListAllReq.Unmarshal(m, b) } func (m *BoardListAllReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_BoardListAllReq.Marshal(b, m, deterministic) } -func (dst *BoardListAllReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_BoardListAllReq.Merge(dst, src) +func (m *BoardListAllReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_BoardListAllReq.Merge(m, src) } func (m *BoardListAllReq) XXX_Size() int { return xxx_messageInfo_BoardListAllReq.Size(m) @@ -575,16 +588,17 @@ func (m *BoardListAllResp) Reset() { *m = BoardListAllResp{} } func (m *BoardListAllResp) String() string { return proto.CompactTextString(m) } func (*BoardListAllResp) ProtoMessage() {} func (*BoardListAllResp) Descriptor() ([]byte, []int) { - return fileDescriptor_board_e8338ee96363d0b7, []int{11} + return fileDescriptor_0882eeddaa6507ab, []int{11} } + func (m *BoardListAllResp) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_BoardListAllResp.Unmarshal(m, b) } func (m *BoardListAllResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_BoardListAllResp.Marshal(b, m, deterministic) } -func (dst *BoardListAllResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_BoardListAllResp.Merge(dst, src) +func (m *BoardListAllResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_BoardListAllResp.Merge(m, src) } func (m *BoardListAllResp) XXX_Size() int { return xxx_messageInfo_BoardListAllResp.Size(m) @@ -614,16 +628,17 @@ func (m *BoardListItem) Reset() { *m = BoardListItem{} } func (m *BoardListItem) String() string { return proto.CompactTextString(m) } func (*BoardListItem) ProtoMessage() {} func (*BoardListItem) Descriptor() ([]byte, []int) { - return fileDescriptor_board_e8338ee96363d0b7, []int{12} + return fileDescriptor_0882eeddaa6507ab, []int{12} } + func (m *BoardListItem) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_BoardListItem.Unmarshal(m, b) } func (m *BoardListItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_BoardListItem.Marshal(b, m, deterministic) } -func (dst *BoardListItem) XXX_Merge(src proto.Message) { - xxx_messageInfo_BoardListItem.Merge(dst, src) +func (m *BoardListItem) XXX_Merge(src proto.Message) { + xxx_messageInfo_BoardListItem.Merge(m, src) } func (m *BoardListItem) XXX_Size() int { return xxx_messageInfo_BoardListItem.Size(m) @@ -649,63 +664,64 @@ func (m *BoardListItem) GetFQBN() string { } func init() { - proto.RegisterType((*BoardDetailsReq)(nil), "cc.arduino.core.rpc.BoardDetailsReq") - proto.RegisterType((*BoardDetailsResp)(nil), "cc.arduino.core.rpc.BoardDetailsResp") - proto.RegisterType((*ConfigOption)(nil), "cc.arduino.core.rpc.ConfigOption") - proto.RegisterType((*ConfigValue)(nil), "cc.arduino.core.rpc.ConfigValue") - proto.RegisterType((*RequiredTool)(nil), "cc.arduino.core.rpc.RequiredTool") - proto.RegisterType((*BoardAttachReq)(nil), "cc.arduino.core.rpc.BoardAttachReq") - proto.RegisterType((*BoardAttachResp)(nil), "cc.arduino.core.rpc.BoardAttachResp") - proto.RegisterType((*BoardListReq)(nil), "cc.arduino.core.rpc.BoardListReq") - proto.RegisterType((*BoardListResp)(nil), "cc.arduino.core.rpc.BoardListResp") - proto.RegisterType((*DetectedPort)(nil), "cc.arduino.core.rpc.DetectedPort") - proto.RegisterType((*BoardListAllReq)(nil), "cc.arduino.core.rpc.BoardListAllReq") - proto.RegisterType((*BoardListAllResp)(nil), "cc.arduino.core.rpc.BoardListAllResp") - proto.RegisterType((*BoardListItem)(nil), "cc.arduino.core.rpc.BoardListItem") -} - -func init() { proto.RegisterFile("board.proto", fileDescriptor_board_e8338ee96363d0b7) } - -var fileDescriptor_board_e8338ee96363d0b7 = []byte{ - // 633 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xa4, 0x54, 0x4d, 0x6f, 0xd4, 0x30, - 0x10, 0x55, 0x68, 0xbb, 0xec, 0xce, 0x26, 0x05, 0x05, 0x84, 0x56, 0x45, 0x88, 0xd6, 0x02, 0xa9, - 0x17, 0x52, 0x09, 0x0e, 0x05, 0x6e, 0x2d, 0xa8, 0x6a, 0xa5, 0xaa, 0x14, 0xab, 0x20, 0xe0, 0x12, - 0xbc, 0x5e, 0x77, 0xd7, 0x6a, 0x12, 0xa7, 0xb6, 0xd3, 0x3f, 0xc0, 0x8f, 0xe1, 0xca, 0x99, 0x5f, - 0x87, 0xbf, 0x12, 0x52, 0x69, 0xa9, 0x84, 0x7a, 0x8a, 0xe7, 0xe5, 0x65, 0xe6, 0xcd, 0xcc, 0x73, - 0x60, 0x3c, 0x15, 0x44, 0xce, 0xb2, 0x5a, 0x0a, 0x2d, 0xd2, 0x07, 0x94, 0x66, 0x26, 0x6a, 0x78, - 0x25, 0x32, 0x2a, 0x24, 0xcb, 0x64, 0x4d, 0x37, 0x62, 0x2a, 0xca, 0x52, 0x54, 0x9e, 0x82, 0xbe, - 0xc3, 0xbd, 0x7d, 0xfb, 0xc5, 0x7b, 0xa6, 0x09, 0x2f, 0x14, 0x66, 0x97, 0xe9, 0x1b, 0x18, 0xf2, - 0x4a, 0x69, 0x52, 0x51, 0x36, 0x89, 0x36, 0xa3, 0xed, 0xf1, 0xcb, 0x27, 0xd9, 0x92, 0x44, 0xd9, - 0x51, 0x20, 0xe1, 0x8e, 0x9e, 0xa6, 0xb0, 0x7a, 0x7e, 0x39, 0xad, 0x26, 0x77, 0xcc, 0x67, 0x23, - 0xec, 0xce, 0xe8, 0x77, 0x04, 0xf7, 0xaf, 0x97, 0x50, 0xb5, 0x25, 0x56, 0xa4, 0x64, 0x2d, 0xd1, - 0x9e, 0xd3, 0x43, 0x58, 0xa7, 0xa2, 0x3a, 0xe7, 0xf3, 0x5c, 0xd4, 0x9a, 0x8b, 0x4a, 0x4d, 0x56, - 0x36, 0x57, 0x4c, 0xf5, 0xad, 0xa5, 0xd5, 0xdf, 0x39, 0xea, 0x07, 0xc7, 0xc4, 0x09, 0xed, 0x45, - 0xca, 0x66, 0x92, 0xec, 0xb2, 0xe1, 0x92, 0xcd, 0x72, 0x2d, 0x44, 0xa1, 0x26, 0xab, 0x37, 0x64, - 0xc2, 0x81, 0x7a, 0x66, 0x98, 0x38, 0x91, 0xbd, 0x48, 0xa1, 0x1f, 0x11, 0xc4, 0xfd, 0x4a, 0xe9, - 0x23, 0x18, 0x78, 0x75, 0x6e, 0x34, 0x23, 0x1c, 0xa2, 0x74, 0x0b, 0x62, 0x7f, 0xca, 0x0b, 0x32, - 0x65, 0x45, 0x68, 0x6c, 0xec, 0xb1, 0x63, 0x0b, 0xa5, 0xaf, 0x61, 0x70, 0x45, 0x8a, 0x86, 0xb5, - 0x7d, 0x6d, 0xde, 0xd0, 0xd7, 0x67, 0x4b, 0xc4, 0x81, 0x6f, 0x96, 0x34, 0xee, 0xc1, 0xe9, 0x43, - 0x58, 0x73, 0x2f, 0x82, 0x04, 0x1f, 0xa4, 0x4f, 0x61, 0xec, 0x0e, 0xd7, 0x04, 0x80, 0x83, 0x7c, - 0xfd, 0x0d, 0x18, 0x2a, 0x56, 0x30, 0xaa, 0xd9, 0xcc, 0x28, 0x88, 0xb6, 0x87, 0xb8, 0x8b, 0xd1, - 0x17, 0x88, 0xfb, 0x63, 0xe8, 0xf6, 0x13, 0xf5, 0xf6, 0x33, 0x81, 0xbb, 0x57, 0x4c, 0x2a, 0xdb, - 0xbb, 0x4f, 0xde, 0x86, 0x36, 0x73, 0x4d, 0xe8, 0x05, 0x99, 0x33, 0xe9, 0x32, 0x8f, 0x70, 0x17, - 0xa3, 0x5f, 0x11, 0xac, 0xbb, 0xf5, 0xef, 0x69, 0x4d, 0xe8, 0xe2, 0x96, 0x06, 0x7b, 0x0c, 0x23, - 0x67, 0xf0, 0xbc, 0x91, 0x3c, 0xa8, 0x18, 0x3a, 0xe0, 0x93, 0xe4, 0x76, 0x02, 0xea, 0x82, 0x69, - 0xba, 0xc8, 0x6b, 0xa2, 0x17, 0x41, 0x09, 0x78, 0xe8, 0xd4, 0x20, 0xe9, 0x73, 0x58, 0x57, 0x8c, - 0x48, 0x43, 0xd0, 0xbc, 0x64, 0xa2, 0xd1, 0xc6, 0x17, 0x96, 0x93, 0x78, 0xf4, 0xcc, 0x83, 0xe8, - 0x6b, 0xb8, 0x13, 0xad, 0x62, 0xe3, 0xd7, 0x03, 0x48, 0x34, 0x51, 0x17, 0xb9, 0xb9, 0x34, 0x73, - 0xc9, 0x94, 0x0a, 0xba, 0x97, 0x1b, 0xea, 0xcc, 0x30, 0x4f, 0x03, 0x11, 0xc7, 0xba, 0x17, 0xa1, - 0x23, 0x88, 0x5d, 0xea, 0x63, 0xae, 0xf4, 0xed, 0x46, 0x81, 0x0e, 0x21, 0xe9, 0xa5, 0x32, 0x1a, - 0x77, 0x61, 0xad, 0x16, 0x52, 0x5b, 0x6d, 0xff, 0x36, 0xbb, 0xb9, 0x84, 0x6e, 0xe3, 0xa7, 0x86, - 0x89, 0x3d, 0x1f, 0xfd, 0x34, 0x26, 0xef, 0xe3, 0x76, 0xd3, 0x64, 0x36, 0xeb, 0xfa, 0x34, 0x9b, - 0x0e, 0xa1, 0xdb, 0xb4, 0xfd, 0x6f, 0x50, 0xd1, 0x3a, 0xac, 0x8b, 0xed, 0x74, 0xdb, 0x73, 0xf0, - 0xa0, 0xdf, 0x40, 0xd2, 0xa2, 0xde, 0x86, 0x6f, 0x61, 0xe0, 0x36, 0xd6, 0x5e, 0x4a, 0xb4, 0x54, - 0x67, 0xd7, 0xda, 0x91, 0x66, 0x25, 0x0e, 0x5f, 0xa0, 0x32, 0x6c, 0xc6, 0xbe, 0xd8, 0x2b, 0x8a, - 0x5b, 0x9a, 0xc9, 0xfa, 0xc5, 0xdb, 0x81, 0xc8, 0xb9, 0x32, 0xfd, 0xac, 0x38, 0xbf, 0x38, 0x68, - 0xcf, 0x20, 0xe8, 0x24, 0xfc, 0xb9, 0xba, 0x72, 0x66, 0xca, 0x7f, 0xe5, 0x47, 0xff, 0x2d, 0x7f, - 0xb7, 0xb7, 0x32, 0xfb, 0x62, 0xe9, 0x35, 0x33, 0xd8, 0xc1, 0xc7, 0xfd, 0x93, 0xf6, 0xd7, 0x68, - 0xcf, 0xfb, 0xcf, 0xbe, 0xa1, 0x39, 0xd7, 0x8b, 0x66, 0x6a, 0x2a, 0x94, 0x3b, 0xa1, 0x5a, 0xfb, - 0x7c, 0x41, 0x0b, 0xbe, 0x63, 0x8a, 0x4e, 0x07, 0x6e, 0xd0, 0xaf, 0xfe, 0x04, 0x00, 0x00, 0xff, - 0xff, 0x70, 0xb5, 0x12, 0x08, 0x04, 0x06, 0x00, 0x00, + proto.RegisterType((*BoardDetailsReq)(nil), "cc.arduino.cli.commands.BoardDetailsReq") + proto.RegisterType((*BoardDetailsResp)(nil), "cc.arduino.cli.commands.BoardDetailsResp") + proto.RegisterType((*ConfigOption)(nil), "cc.arduino.cli.commands.ConfigOption") + proto.RegisterType((*ConfigValue)(nil), "cc.arduino.cli.commands.ConfigValue") + proto.RegisterType((*RequiredTool)(nil), "cc.arduino.cli.commands.RequiredTool") + proto.RegisterType((*BoardAttachReq)(nil), "cc.arduino.cli.commands.BoardAttachReq") + proto.RegisterType((*BoardAttachResp)(nil), "cc.arduino.cli.commands.BoardAttachResp") + proto.RegisterType((*BoardListReq)(nil), "cc.arduino.cli.commands.BoardListReq") + proto.RegisterType((*BoardListResp)(nil), "cc.arduino.cli.commands.BoardListResp") + proto.RegisterType((*DetectedPort)(nil), "cc.arduino.cli.commands.DetectedPort") + proto.RegisterType((*BoardListAllReq)(nil), "cc.arduino.cli.commands.BoardListAllReq") + proto.RegisterType((*BoardListAllResp)(nil), "cc.arduino.cli.commands.BoardListAllResp") + proto.RegisterType((*BoardListItem)(nil), "cc.arduino.cli.commands.BoardListItem") +} + +func init() { proto.RegisterFile("commands/board.proto", fileDescriptor_0882eeddaa6507ab) } + +var fileDescriptor_0882eeddaa6507ab = []byte{ + // 656 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0xdd, 0x6e, 0x13, 0x3b, + 0x10, 0xd6, 0x36, 0x69, 0x4e, 0x32, 0x49, 0x7a, 0x8e, 0xac, 0x9e, 0x73, 0x56, 0xe5, 0x82, 0x74, + 0x45, 0x51, 0x24, 0xd4, 0x44, 0x2a, 0x17, 0x5c, 0xf0, 0x23, 0xb5, 0x54, 0x48, 0x45, 0x01, 0x8a, + 0x55, 0x10, 0x42, 0x42, 0x8b, 0xe3, 0x75, 0x13, 0x2b, 0x9b, 0xf5, 0xc6, 0x76, 0xfa, 0x0a, 0x3c, + 0x0c, 0xb7, 0x3c, 0x01, 0x4f, 0x86, 0xfc, 0xb7, 0xda, 0x4a, 0x84, 0x4a, 0xd0, 0xab, 0x9d, 0x99, + 0xfd, 0x3c, 0xf3, 0xcd, 0xcc, 0x67, 0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3e, 0x96, 0x25, 0x1d, 0x87, 0xea, 0xd3, 0x96, 0x9d, + 0xfe, 0xc3, 0x1f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x88, 0xae, 0x33, 0x62, 0x4f, 0x06, 0x00, 0x00, } diff --git a/rpc/board.proto b/rpc/commands/board.proto similarity index 93% rename from rpc/board.proto rename to rpc/commands/board.proto index 21f3884f4cc..06955134efc 100644 --- a/rpc/board.proto +++ b/rpc/commands/board.proto @@ -17,11 +17,11 @@ syntax = "proto3"; -package cc.arduino.core.rpc; +package cc.arduino.cli.commands; -option go_package = "github.com/arduino/arduino-cli/rpc"; +option go_package = "github.com/arduino/arduino-cli/rpc/commands"; -import "common.proto"; +import "commands/common.proto"; message BoardDetailsReq { Instance instance = 1; diff --git a/rpc/commands.pb.go b/rpc/commands/commands.pb.go similarity index 75% rename from rpc/commands.pb.go rename to rpc/commands/commands.pb.go index 6ee60fab704..49bf1461246 100644 --- a/rpc/commands.pb.go +++ b/rpc/commands/commands.pb.go @@ -1,15 +1,16 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: commands.proto +// source: commands/commands.proto -package rpc // import "github.com/arduino/arduino-cli/rpc" - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" +package commands import ( - context "golang.org/x/net/context" + context "context" + fmt "fmt" + proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" ) // Reference imports to suppress errors if they are not otherwise used. @@ -21,7 +22,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package // Configuration contains information to instantiate an Arduino Platform Service type Configuration struct { @@ -46,16 +47,17 @@ func (m *Configuration) Reset() { *m = Configuration{} } func (m *Configuration) String() string { return proto.CompactTextString(m) } func (*Configuration) ProtoMessage() {} func (*Configuration) Descriptor() ([]byte, []int) { - return fileDescriptor_commands_92dd81084d7f582d, []int{0} + return fileDescriptor_3690061a1131852d, []int{0} } + func (m *Configuration) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Configuration.Unmarshal(m, b) } func (m *Configuration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Configuration.Marshal(b, m, deterministic) } -func (dst *Configuration) XXX_Merge(src proto.Message) { - xxx_messageInfo_Configuration.Merge(dst, src) +func (m *Configuration) XXX_Merge(src proto.Message) { + xxx_messageInfo_Configuration.Merge(m, src) } func (m *Configuration) XXX_Size() int { return xxx_messageInfo_Configuration.Size(m) @@ -106,16 +108,17 @@ func (m *InitReq) Reset() { *m = InitReq{} } func (m *InitReq) String() string { return proto.CompactTextString(m) } func (*InitReq) ProtoMessage() {} func (*InitReq) Descriptor() ([]byte, []int) { - return fileDescriptor_commands_92dd81084d7f582d, []int{1} + return fileDescriptor_3690061a1131852d, []int{1} } + func (m *InitReq) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_InitReq.Unmarshal(m, b) } func (m *InitReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_InitReq.Marshal(b, m, deterministic) } -func (dst *InitReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_InitReq.Merge(dst, src) +func (m *InitReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_InitReq.Merge(m, src) } func (m *InitReq) XXX_Size() int { return xxx_messageInfo_InitReq.Size(m) @@ -155,16 +158,17 @@ func (m *InitResp) Reset() { *m = InitResp{} } func (m *InitResp) String() string { return proto.CompactTextString(m) } func (*InitResp) ProtoMessage() {} func (*InitResp) Descriptor() ([]byte, []int) { - return fileDescriptor_commands_92dd81084d7f582d, []int{2} + return fileDescriptor_3690061a1131852d, []int{2} } + func (m *InitResp) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_InitResp.Unmarshal(m, b) } func (m *InitResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_InitResp.Marshal(b, m, deterministic) } -func (dst *InitResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_InitResp.Merge(dst, src) +func (m *InitResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_InitResp.Merge(m, src) } func (m *InitResp) XXX_Size() int { return xxx_messageInfo_InitResp.Size(m) @@ -221,16 +225,17 @@ func (m *DestroyReq) Reset() { *m = DestroyReq{} } func (m *DestroyReq) String() string { return proto.CompactTextString(m) } func (*DestroyReq) ProtoMessage() {} func (*DestroyReq) Descriptor() ([]byte, []int) { - return fileDescriptor_commands_92dd81084d7f582d, []int{3} + return fileDescriptor_3690061a1131852d, []int{3} } + func (m *DestroyReq) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DestroyReq.Unmarshal(m, b) } func (m *DestroyReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_DestroyReq.Marshal(b, m, deterministic) } -func (dst *DestroyReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_DestroyReq.Merge(dst, src) +func (m *DestroyReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_DestroyReq.Merge(m, src) } func (m *DestroyReq) XXX_Size() int { return xxx_messageInfo_DestroyReq.Size(m) @@ -258,16 +263,17 @@ func (m *DestroyResp) Reset() { *m = DestroyResp{} } func (m *DestroyResp) String() string { return proto.CompactTextString(m) } func (*DestroyResp) ProtoMessage() {} func (*DestroyResp) Descriptor() ([]byte, []int) { - return fileDescriptor_commands_92dd81084d7f582d, []int{4} + return fileDescriptor_3690061a1131852d, []int{4} } + func (m *DestroyResp) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DestroyResp.Unmarshal(m, b) } func (m *DestroyResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_DestroyResp.Marshal(b, m, deterministic) } -func (dst *DestroyResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_DestroyResp.Merge(dst, src) +func (m *DestroyResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_DestroyResp.Merge(m, src) } func (m *DestroyResp) XXX_Size() int { return xxx_messageInfo_DestroyResp.Size(m) @@ -289,16 +295,17 @@ func (m *RescanReq) Reset() { *m = RescanReq{} } func (m *RescanReq) String() string { return proto.CompactTextString(m) } func (*RescanReq) ProtoMessage() {} func (*RescanReq) Descriptor() ([]byte, []int) { - return fileDescriptor_commands_92dd81084d7f582d, []int{5} + return fileDescriptor_3690061a1131852d, []int{5} } + func (m *RescanReq) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_RescanReq.Unmarshal(m, b) } func (m *RescanReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_RescanReq.Marshal(b, m, deterministic) } -func (dst *RescanReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_RescanReq.Merge(dst, src) +func (m *RescanReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_RescanReq.Merge(m, src) } func (m *RescanReq) XXX_Size() int { return xxx_messageInfo_RescanReq.Size(m) @@ -328,16 +335,17 @@ func (m *RescanResp) Reset() { *m = RescanResp{} } func (m *RescanResp) String() string { return proto.CompactTextString(m) } func (*RescanResp) ProtoMessage() {} func (*RescanResp) Descriptor() ([]byte, []int) { - return fileDescriptor_commands_92dd81084d7f582d, []int{6} + return fileDescriptor_3690061a1131852d, []int{6} } + func (m *RescanResp) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_RescanResp.Unmarshal(m, b) } func (m *RescanResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_RescanResp.Marshal(b, m, deterministic) } -func (dst *RescanResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_RescanResp.Merge(dst, src) +func (m *RescanResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_RescanResp.Merge(m, src) } func (m *RescanResp) XXX_Size() int { return xxx_messageInfo_RescanResp.Size(m) @@ -373,16 +381,17 @@ func (m *UpdateIndexReq) Reset() { *m = UpdateIndexReq{} } func (m *UpdateIndexReq) String() string { return proto.CompactTextString(m) } func (*UpdateIndexReq) ProtoMessage() {} func (*UpdateIndexReq) Descriptor() ([]byte, []int) { - return fileDescriptor_commands_92dd81084d7f582d, []int{7} + return fileDescriptor_3690061a1131852d, []int{7} } + func (m *UpdateIndexReq) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_UpdateIndexReq.Unmarshal(m, b) } func (m *UpdateIndexReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_UpdateIndexReq.Marshal(b, m, deterministic) } -func (dst *UpdateIndexReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateIndexReq.Merge(dst, src) +func (m *UpdateIndexReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateIndexReq.Merge(m, src) } func (m *UpdateIndexReq) XXX_Size() int { return xxx_messageInfo_UpdateIndexReq.Size(m) @@ -411,16 +420,17 @@ func (m *UpdateIndexResp) Reset() { *m = UpdateIndexResp{} } func (m *UpdateIndexResp) String() string { return proto.CompactTextString(m) } func (*UpdateIndexResp) ProtoMessage() {} func (*UpdateIndexResp) Descriptor() ([]byte, []int) { - return fileDescriptor_commands_92dd81084d7f582d, []int{8} + return fileDescriptor_3690061a1131852d, []int{8} } + func (m *UpdateIndexResp) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_UpdateIndexResp.Unmarshal(m, b) } func (m *UpdateIndexResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_UpdateIndexResp.Marshal(b, m, deterministic) } -func (dst *UpdateIndexResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateIndexResp.Merge(dst, src) +func (m *UpdateIndexResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateIndexResp.Merge(m, src) } func (m *UpdateIndexResp) XXX_Size() int { return xxx_messageInfo_UpdateIndexResp.Size(m) @@ -449,16 +459,17 @@ func (m *UpdateLibrariesIndexReq) Reset() { *m = UpdateLibrariesIndexReq func (m *UpdateLibrariesIndexReq) String() string { return proto.CompactTextString(m) } func (*UpdateLibrariesIndexReq) ProtoMessage() {} func (*UpdateLibrariesIndexReq) Descriptor() ([]byte, []int) { - return fileDescriptor_commands_92dd81084d7f582d, []int{9} + return fileDescriptor_3690061a1131852d, []int{9} } + func (m *UpdateLibrariesIndexReq) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_UpdateLibrariesIndexReq.Unmarshal(m, b) } func (m *UpdateLibrariesIndexReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_UpdateLibrariesIndexReq.Marshal(b, m, deterministic) } -func (dst *UpdateLibrariesIndexReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateLibrariesIndexReq.Merge(dst, src) +func (m *UpdateLibrariesIndexReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateLibrariesIndexReq.Merge(m, src) } func (m *UpdateLibrariesIndexReq) XXX_Size() int { return xxx_messageInfo_UpdateLibrariesIndexReq.Size(m) @@ -487,16 +498,17 @@ func (m *UpdateLibrariesIndexResp) Reset() { *m = UpdateLibrariesIndexRe func (m *UpdateLibrariesIndexResp) String() string { return proto.CompactTextString(m) } func (*UpdateLibrariesIndexResp) ProtoMessage() {} func (*UpdateLibrariesIndexResp) Descriptor() ([]byte, []int) { - return fileDescriptor_commands_92dd81084d7f582d, []int{10} + return fileDescriptor_3690061a1131852d, []int{10} } + func (m *UpdateLibrariesIndexResp) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_UpdateLibrariesIndexResp.Unmarshal(m, b) } func (m *UpdateLibrariesIndexResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_UpdateLibrariesIndexResp.Marshal(b, m, deterministic) } -func (dst *UpdateLibrariesIndexResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateLibrariesIndexResp.Merge(dst, src) +func (m *UpdateLibrariesIndexResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateLibrariesIndexResp.Merge(m, src) } func (m *UpdateLibrariesIndexResp) XXX_Size() int { return xxx_messageInfo_UpdateLibrariesIndexResp.Size(m) @@ -524,16 +536,17 @@ func (m *VersionReq) Reset() { *m = VersionReq{} } func (m *VersionReq) String() string { return proto.CompactTextString(m) } func (*VersionReq) ProtoMessage() {} func (*VersionReq) Descriptor() ([]byte, []int) { - return fileDescriptor_commands_92dd81084d7f582d, []int{11} + return fileDescriptor_3690061a1131852d, []int{11} } + func (m *VersionReq) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_VersionReq.Unmarshal(m, b) } func (m *VersionReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_VersionReq.Marshal(b, m, deterministic) } -func (dst *VersionReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_VersionReq.Merge(dst, src) +func (m *VersionReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_VersionReq.Merge(m, src) } func (m *VersionReq) XXX_Size() int { return xxx_messageInfo_VersionReq.Size(m) @@ -555,16 +568,17 @@ func (m *VersionResp) Reset() { *m = VersionResp{} } func (m *VersionResp) String() string { return proto.CompactTextString(m) } func (*VersionResp) ProtoMessage() {} func (*VersionResp) Descriptor() ([]byte, []int) { - return fileDescriptor_commands_92dd81084d7f582d, []int{12} + return fileDescriptor_3690061a1131852d, []int{12} } + func (m *VersionResp) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_VersionResp.Unmarshal(m, b) } func (m *VersionResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_VersionResp.Marshal(b, m, deterministic) } -func (dst *VersionResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_VersionResp.Merge(dst, src) +func (m *VersionResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_VersionResp.Merge(m, src) } func (m *VersionResp) XXX_Size() int { return xxx_messageInfo_VersionResp.Size(m) @@ -583,19 +597,88 @@ func (m *VersionResp) GetVersion() string { } func init() { - proto.RegisterType((*Configuration)(nil), "cc.arduino.core.rpc.Configuration") - proto.RegisterType((*InitReq)(nil), "cc.arduino.core.rpc.InitReq") - proto.RegisterType((*InitResp)(nil), "cc.arduino.core.rpc.InitResp") - proto.RegisterType((*DestroyReq)(nil), "cc.arduino.core.rpc.DestroyReq") - proto.RegisterType((*DestroyResp)(nil), "cc.arduino.core.rpc.DestroyResp") - proto.RegisterType((*RescanReq)(nil), "cc.arduino.core.rpc.RescanReq") - proto.RegisterType((*RescanResp)(nil), "cc.arduino.core.rpc.RescanResp") - proto.RegisterType((*UpdateIndexReq)(nil), "cc.arduino.core.rpc.UpdateIndexReq") - proto.RegisterType((*UpdateIndexResp)(nil), "cc.arduino.core.rpc.UpdateIndexResp") - proto.RegisterType((*UpdateLibrariesIndexReq)(nil), "cc.arduino.core.rpc.UpdateLibrariesIndexReq") - proto.RegisterType((*UpdateLibrariesIndexResp)(nil), "cc.arduino.core.rpc.UpdateLibrariesIndexResp") - proto.RegisterType((*VersionReq)(nil), "cc.arduino.core.rpc.VersionReq") - proto.RegisterType((*VersionResp)(nil), "cc.arduino.core.rpc.VersionResp") + proto.RegisterType((*Configuration)(nil), "cc.arduino.cli.commands.Configuration") + proto.RegisterType((*InitReq)(nil), "cc.arduino.cli.commands.InitReq") + proto.RegisterType((*InitResp)(nil), "cc.arduino.cli.commands.InitResp") + proto.RegisterType((*DestroyReq)(nil), "cc.arduino.cli.commands.DestroyReq") + proto.RegisterType((*DestroyResp)(nil), "cc.arduino.cli.commands.DestroyResp") + proto.RegisterType((*RescanReq)(nil), "cc.arduino.cli.commands.RescanReq") + proto.RegisterType((*RescanResp)(nil), "cc.arduino.cli.commands.RescanResp") + proto.RegisterType((*UpdateIndexReq)(nil), "cc.arduino.cli.commands.UpdateIndexReq") + proto.RegisterType((*UpdateIndexResp)(nil), "cc.arduino.cli.commands.UpdateIndexResp") + proto.RegisterType((*UpdateLibrariesIndexReq)(nil), "cc.arduino.cli.commands.UpdateLibrariesIndexReq") + proto.RegisterType((*UpdateLibrariesIndexResp)(nil), "cc.arduino.cli.commands.UpdateLibrariesIndexResp") + proto.RegisterType((*VersionReq)(nil), "cc.arduino.cli.commands.VersionReq") + proto.RegisterType((*VersionResp)(nil), "cc.arduino.cli.commands.VersionResp") +} + +func init() { proto.RegisterFile("commands/commands.proto", fileDescriptor_3690061a1131852d) } + +var fileDescriptor_3690061a1131852d = []byte{ + // 1000 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x97, 0xcd, 0x53, 0x1b, 0x37, + 0x14, 0xc0, 0x63, 0x92, 0xf2, 0xf1, 0x8c, 0x49, 0x22, 0x48, 0xf0, 0xf8, 0x44, 0x36, 0x1f, 0x18, + 0x28, 0x86, 0xd2, 0x5e, 0xdb, 0x19, 0x07, 0x7a, 0x20, 0xa5, 0x43, 0xc6, 0xd4, 0x4c, 0x27, 0x17, + 0x57, 0xde, 0x15, 0x46, 0xe3, 0x65, 0x25, 0xa4, 0x25, 0xad, 0x4f, 0x3d, 0xf7, 0x5f, 0xe9, 0xb5, + 0x7f, 0x4c, 0xff, 0x9d, 0x8e, 0xb4, 0x92, 0xbc, 0x0b, 0xec, 0x07, 0x85, 0x9c, 0x40, 0xef, 0xfd, + 0xde, 0x7b, 0xd2, 0xfb, 0xb2, 0x0d, 0xab, 0x3e, 0xbb, 0xb8, 0xc0, 0x51, 0x20, 0x77, 0xec, 0x3f, + 0x1d, 0x2e, 0x58, 0xcc, 0xd0, 0xaa, 0xef, 0x77, 0xb0, 0x08, 0xae, 0x68, 0xc4, 0x3a, 0x7e, 0x48, + 0x3b, 0x56, 0xdd, 0x7a, 0x91, 0xb1, 0x60, 0x51, 0xc2, 0xb7, 0x56, 0x9c, 0x78, 0xc8, 0xb0, 0x08, + 0x8c, 0xf4, 0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a, 0x92, 0x92, 0xab, 0xa2, 0x24, + 0x1b, 0x74, 0xe2, 0x9a, 0x2f, 0xff, 0x92, 0xd7, 0xc8, 0xe2, 0xa2, 0xdc, 0x80, 0x75, 0xfe, 0xc6, + 0xb0, 0x64, 0x14, 0x76, 0xb8, 0x36, 0xcb, 0x3c, 0xa4, 0x66, 0x6b, 0xab, 0x32, 0x6b, 0x47, 0xcb, + 0xc8, 0xa7, 0x6d, 0x5e, 0x7a, 0xe1, 0x4c, 0x97, 0x6f, 0xdf, 0x81, 0xb6, 0xa3, 0x65, 0x35, 0x49, + 0x33, 0x76, 0x0b, 0x47, 0xeb, 0x06, 0x5b, 0x3c, 0x5a, 0xb7, 0xe0, 0x3a, 0xea, 0x19, 0x34, 0x8c, + 0xca, 0x34, 0xe5, 0x46, 0x99, 0x8b, 0x69, 0x4f, 0x6e, 0x56, 0x45, 0x25, 0x47, 0xbf, 0x41, 0xdd, + 0x08, 0x75, 0x47, 0xae, 0x97, 0x99, 0xda, 0x86, 0x6c, 0x57, 0x03, 0x25, 0x7f, 0xbf, 0xfd, 0x69, + 0x6b, 0x44, 0xe3, 0xf3, 0xab, 0xa1, 0x42, 0x76, 0x8c, 0x89, 0xfd, 0xbb, 0xed, 0x87, 0x74, 0x47, + 0x70, 0xdf, 0xfd, 0xf8, 0x1f, 0xce, 0xea, 0xdf, 0xd7, 0xdf, 0xfe, 0x17, 0x00, 0x00, 0xff, 0xff, + 0x43, 0xa8, 0xcb, 0x4f, 0x18, 0x10, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -651,7 +734,7 @@ func NewArduinoCoreClient(cc *grpc.ClientConn) ArduinoCoreClient { } func (c *arduinoCoreClient) Init(ctx context.Context, in *InitReq, opts ...grpc.CallOption) (ArduinoCore_InitClient, error) { - stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[0], "/cc.arduino.core.rpc.ArduinoCore/Init", opts...) + stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[0], "/cc.arduino.cli.commands.ArduinoCore/Init", opts...) if err != nil { return nil, err } @@ -684,7 +767,7 @@ func (x *arduinoCoreInitClient) Recv() (*InitResp, error) { func (c *arduinoCoreClient) Destroy(ctx context.Context, in *DestroyReq, opts ...grpc.CallOption) (*DestroyResp, error) { out := new(DestroyResp) - err := c.cc.Invoke(ctx, "/cc.arduino.core.rpc.ArduinoCore/Destroy", in, out, opts...) + err := c.cc.Invoke(ctx, "/cc.arduino.cli.commands.ArduinoCore/Destroy", in, out, opts...) if err != nil { return nil, err } @@ -693,7 +776,7 @@ func (c *arduinoCoreClient) Destroy(ctx context.Context, in *DestroyReq, opts .. func (c *arduinoCoreClient) Rescan(ctx context.Context, in *RescanReq, opts ...grpc.CallOption) (*RescanResp, error) { out := new(RescanResp) - err := c.cc.Invoke(ctx, "/cc.arduino.core.rpc.ArduinoCore/Rescan", in, out, opts...) + err := c.cc.Invoke(ctx, "/cc.arduino.cli.commands.ArduinoCore/Rescan", in, out, opts...) if err != nil { return nil, err } @@ -701,7 +784,7 @@ func (c *arduinoCoreClient) Rescan(ctx context.Context, in *RescanReq, opts ...g } func (c *arduinoCoreClient) UpdateIndex(ctx context.Context, in *UpdateIndexReq, opts ...grpc.CallOption) (ArduinoCore_UpdateIndexClient, error) { - stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[1], "/cc.arduino.core.rpc.ArduinoCore/UpdateIndex", opts...) + stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[1], "/cc.arduino.cli.commands.ArduinoCore/UpdateIndex", opts...) if err != nil { return nil, err } @@ -733,7 +816,7 @@ func (x *arduinoCoreUpdateIndexClient) Recv() (*UpdateIndexResp, error) { } func (c *arduinoCoreClient) UpdateLibrariesIndex(ctx context.Context, in *UpdateLibrariesIndexReq, opts ...grpc.CallOption) (ArduinoCore_UpdateLibrariesIndexClient, error) { - stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[2], "/cc.arduino.core.rpc.ArduinoCore/UpdateLibrariesIndex", opts...) + stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[2], "/cc.arduino.cli.commands.ArduinoCore/UpdateLibrariesIndex", opts...) if err != nil { return nil, err } @@ -766,7 +849,7 @@ func (x *arduinoCoreUpdateLibrariesIndexClient) Recv() (*UpdateLibrariesIndexRes func (c *arduinoCoreClient) Version(ctx context.Context, in *VersionReq, opts ...grpc.CallOption) (*VersionResp, error) { out := new(VersionResp) - err := c.cc.Invoke(ctx, "/cc.arduino.core.rpc.ArduinoCore/Version", in, out, opts...) + err := c.cc.Invoke(ctx, "/cc.arduino.cli.commands.ArduinoCore/Version", in, out, opts...) if err != nil { return nil, err } @@ -775,7 +858,7 @@ func (c *arduinoCoreClient) Version(ctx context.Context, in *VersionReq, opts .. func (c *arduinoCoreClient) BoardDetails(ctx context.Context, in *BoardDetailsReq, opts ...grpc.CallOption) (*BoardDetailsResp, error) { out := new(BoardDetailsResp) - err := c.cc.Invoke(ctx, "/cc.arduino.core.rpc.ArduinoCore/BoardDetails", in, out, opts...) + err := c.cc.Invoke(ctx, "/cc.arduino.cli.commands.ArduinoCore/BoardDetails", in, out, opts...) if err != nil { return nil, err } @@ -783,7 +866,7 @@ func (c *arduinoCoreClient) BoardDetails(ctx context.Context, in *BoardDetailsRe } func (c *arduinoCoreClient) BoardAttach(ctx context.Context, in *BoardAttachReq, opts ...grpc.CallOption) (ArduinoCore_BoardAttachClient, error) { - stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[3], "/cc.arduino.core.rpc.ArduinoCore/BoardAttach", opts...) + stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[3], "/cc.arduino.cli.commands.ArduinoCore/BoardAttach", opts...) if err != nil { return nil, err } @@ -816,7 +899,7 @@ func (x *arduinoCoreBoardAttachClient) Recv() (*BoardAttachResp, error) { func (c *arduinoCoreClient) BoardList(ctx context.Context, in *BoardListReq, opts ...grpc.CallOption) (*BoardListResp, error) { out := new(BoardListResp) - err := c.cc.Invoke(ctx, "/cc.arduino.core.rpc.ArduinoCore/BoardList", in, out, opts...) + err := c.cc.Invoke(ctx, "/cc.arduino.cli.commands.ArduinoCore/BoardList", in, out, opts...) if err != nil { return nil, err } @@ -825,7 +908,7 @@ func (c *arduinoCoreClient) BoardList(ctx context.Context, in *BoardListReq, opt func (c *arduinoCoreClient) BoardListAll(ctx context.Context, in *BoardListAllReq, opts ...grpc.CallOption) (*BoardListAllResp, error) { out := new(BoardListAllResp) - err := c.cc.Invoke(ctx, "/cc.arduino.core.rpc.ArduinoCore/BoardListAll", in, out, opts...) + err := c.cc.Invoke(ctx, "/cc.arduino.cli.commands.ArduinoCore/BoardListAll", in, out, opts...) if err != nil { return nil, err } @@ -833,7 +916,7 @@ func (c *arduinoCoreClient) BoardListAll(ctx context.Context, in *BoardListAllRe } func (c *arduinoCoreClient) Compile(ctx context.Context, in *CompileReq, opts ...grpc.CallOption) (ArduinoCore_CompileClient, error) { - stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[4], "/cc.arduino.core.rpc.ArduinoCore/Compile", opts...) + stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[4], "/cc.arduino.cli.commands.ArduinoCore/Compile", opts...) if err != nil { return nil, err } @@ -865,7 +948,7 @@ func (x *arduinoCoreCompileClient) Recv() (*CompileResp, error) { } func (c *arduinoCoreClient) PlatformInstall(ctx context.Context, in *PlatformInstallReq, opts ...grpc.CallOption) (ArduinoCore_PlatformInstallClient, error) { - stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[5], "/cc.arduino.core.rpc.ArduinoCore/PlatformInstall", opts...) + stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[5], "/cc.arduino.cli.commands.ArduinoCore/PlatformInstall", opts...) if err != nil { return nil, err } @@ -897,7 +980,7 @@ func (x *arduinoCorePlatformInstallClient) Recv() (*PlatformInstallResp, error) } func (c *arduinoCoreClient) PlatformDownload(ctx context.Context, in *PlatformDownloadReq, opts ...grpc.CallOption) (ArduinoCore_PlatformDownloadClient, error) { - stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[6], "/cc.arduino.core.rpc.ArduinoCore/PlatformDownload", opts...) + stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[6], "/cc.arduino.cli.commands.ArduinoCore/PlatformDownload", opts...) if err != nil { return nil, err } @@ -929,7 +1012,7 @@ func (x *arduinoCorePlatformDownloadClient) Recv() (*PlatformDownloadResp, error } func (c *arduinoCoreClient) PlatformUninstall(ctx context.Context, in *PlatformUninstallReq, opts ...grpc.CallOption) (ArduinoCore_PlatformUninstallClient, error) { - stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[7], "/cc.arduino.core.rpc.ArduinoCore/PlatformUninstall", opts...) + stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[7], "/cc.arduino.cli.commands.ArduinoCore/PlatformUninstall", opts...) if err != nil { return nil, err } @@ -961,7 +1044,7 @@ func (x *arduinoCorePlatformUninstallClient) Recv() (*PlatformUninstallResp, err } func (c *arduinoCoreClient) PlatformUpgrade(ctx context.Context, in *PlatformUpgradeReq, opts ...grpc.CallOption) (ArduinoCore_PlatformUpgradeClient, error) { - stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[8], "/cc.arduino.core.rpc.ArduinoCore/PlatformUpgrade", opts...) + stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[8], "/cc.arduino.cli.commands.ArduinoCore/PlatformUpgrade", opts...) if err != nil { return nil, err } @@ -993,7 +1076,7 @@ func (x *arduinoCorePlatformUpgradeClient) Recv() (*PlatformUpgradeResp, error) } func (c *arduinoCoreClient) Upload(ctx context.Context, in *UploadReq, opts ...grpc.CallOption) (ArduinoCore_UploadClient, error) { - stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[9], "/cc.arduino.core.rpc.ArduinoCore/Upload", opts...) + stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[9], "/cc.arduino.cli.commands.ArduinoCore/Upload", opts...) if err != nil { return nil, err } @@ -1026,7 +1109,7 @@ func (x *arduinoCoreUploadClient) Recv() (*UploadResp, error) { func (c *arduinoCoreClient) PlatformSearch(ctx context.Context, in *PlatformSearchReq, opts ...grpc.CallOption) (*PlatformSearchResp, error) { out := new(PlatformSearchResp) - err := c.cc.Invoke(ctx, "/cc.arduino.core.rpc.ArduinoCore/PlatformSearch", in, out, opts...) + err := c.cc.Invoke(ctx, "/cc.arduino.cli.commands.ArduinoCore/PlatformSearch", in, out, opts...) if err != nil { return nil, err } @@ -1035,7 +1118,7 @@ func (c *arduinoCoreClient) PlatformSearch(ctx context.Context, in *PlatformSear func (c *arduinoCoreClient) PlatformList(ctx context.Context, in *PlatformListReq, opts ...grpc.CallOption) (*PlatformListResp, error) { out := new(PlatformListResp) - err := c.cc.Invoke(ctx, "/cc.arduino.core.rpc.ArduinoCore/PlatformList", in, out, opts...) + err := c.cc.Invoke(ctx, "/cc.arduino.cli.commands.ArduinoCore/PlatformList", in, out, opts...) if err != nil { return nil, err } @@ -1043,7 +1126,7 @@ func (c *arduinoCoreClient) PlatformList(ctx context.Context, in *PlatformListRe } func (c *arduinoCoreClient) LibraryDownload(ctx context.Context, in *LibraryDownloadReq, opts ...grpc.CallOption) (ArduinoCore_LibraryDownloadClient, error) { - stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[10], "/cc.arduino.core.rpc.ArduinoCore/LibraryDownload", opts...) + stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[10], "/cc.arduino.cli.commands.ArduinoCore/LibraryDownload", opts...) if err != nil { return nil, err } @@ -1075,7 +1158,7 @@ func (x *arduinoCoreLibraryDownloadClient) Recv() (*LibraryDownloadResp, error) } func (c *arduinoCoreClient) LibraryInstall(ctx context.Context, in *LibraryInstallReq, opts ...grpc.CallOption) (ArduinoCore_LibraryInstallClient, error) { - stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[11], "/cc.arduino.core.rpc.ArduinoCore/LibraryInstall", opts...) + stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[11], "/cc.arduino.cli.commands.ArduinoCore/LibraryInstall", opts...) if err != nil { return nil, err } @@ -1107,7 +1190,7 @@ func (x *arduinoCoreLibraryInstallClient) Recv() (*LibraryInstallResp, error) { } func (c *arduinoCoreClient) LibraryUninstall(ctx context.Context, in *LibraryUninstallReq, opts ...grpc.CallOption) (ArduinoCore_LibraryUninstallClient, error) { - stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[12], "/cc.arduino.core.rpc.ArduinoCore/LibraryUninstall", opts...) + stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[12], "/cc.arduino.cli.commands.ArduinoCore/LibraryUninstall", opts...) if err != nil { return nil, err } @@ -1139,7 +1222,7 @@ func (x *arduinoCoreLibraryUninstallClient) Recv() (*LibraryUninstallResp, error } func (c *arduinoCoreClient) LibraryUpgradeAll(ctx context.Context, in *LibraryUpgradeAllReq, opts ...grpc.CallOption) (ArduinoCore_LibraryUpgradeAllClient, error) { - stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[13], "/cc.arduino.core.rpc.ArduinoCore/LibraryUpgradeAll", opts...) + stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[13], "/cc.arduino.cli.commands.ArduinoCore/LibraryUpgradeAll", opts...) if err != nil { return nil, err } @@ -1172,7 +1255,7 @@ func (x *arduinoCoreLibraryUpgradeAllClient) Recv() (*LibraryUpgradeAllResp, err func (c *arduinoCoreClient) LibrarySearch(ctx context.Context, in *LibrarySearchReq, opts ...grpc.CallOption) (*LibrarySearchResp, error) { out := new(LibrarySearchResp) - err := c.cc.Invoke(ctx, "/cc.arduino.core.rpc.ArduinoCore/LibrarySearch", in, out, opts...) + err := c.cc.Invoke(ctx, "/cc.arduino.cli.commands.ArduinoCore/LibrarySearch", in, out, opts...) if err != nil { return nil, err } @@ -1181,7 +1264,7 @@ func (c *arduinoCoreClient) LibrarySearch(ctx context.Context, in *LibrarySearch func (c *arduinoCoreClient) LibraryList(ctx context.Context, in *LibraryListReq, opts ...grpc.CallOption) (*LibraryListResp, error) { out := new(LibraryListResp) - err := c.cc.Invoke(ctx, "/cc.arduino.core.rpc.ArduinoCore/LibraryList", in, out, opts...) + err := c.cc.Invoke(ctx, "/cc.arduino.cli.commands.ArduinoCore/LibraryList", in, out, opts...) if err != nil { return nil, err } @@ -1222,6 +1305,83 @@ type ArduinoCoreServer interface { LibraryList(context.Context, *LibraryListReq) (*LibraryListResp, error) } +// UnimplementedArduinoCoreServer can be embedded to have forward compatible implementations. +type UnimplementedArduinoCoreServer struct { +} + +func (*UnimplementedArduinoCoreServer) Init(req *InitReq, srv ArduinoCore_InitServer) error { + return status.Errorf(codes.Unimplemented, "method Init not implemented") +} +func (*UnimplementedArduinoCoreServer) Destroy(ctx context.Context, req *DestroyReq) (*DestroyResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method Destroy not implemented") +} +func (*UnimplementedArduinoCoreServer) Rescan(ctx context.Context, req *RescanReq) (*RescanResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method Rescan not implemented") +} +func (*UnimplementedArduinoCoreServer) UpdateIndex(req *UpdateIndexReq, srv ArduinoCore_UpdateIndexServer) error { + return status.Errorf(codes.Unimplemented, "method UpdateIndex not implemented") +} +func (*UnimplementedArduinoCoreServer) UpdateLibrariesIndex(req *UpdateLibrariesIndexReq, srv ArduinoCore_UpdateLibrariesIndexServer) error { + return status.Errorf(codes.Unimplemented, "method UpdateLibrariesIndex not implemented") +} +func (*UnimplementedArduinoCoreServer) Version(ctx context.Context, req *VersionReq) (*VersionResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method Version not implemented") +} +func (*UnimplementedArduinoCoreServer) BoardDetails(ctx context.Context, req *BoardDetailsReq) (*BoardDetailsResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method BoardDetails not implemented") +} +func (*UnimplementedArduinoCoreServer) BoardAttach(req *BoardAttachReq, srv ArduinoCore_BoardAttachServer) error { + return status.Errorf(codes.Unimplemented, "method BoardAttach not implemented") +} +func (*UnimplementedArduinoCoreServer) BoardList(ctx context.Context, req *BoardListReq) (*BoardListResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method BoardList not implemented") +} +func (*UnimplementedArduinoCoreServer) BoardListAll(ctx context.Context, req *BoardListAllReq) (*BoardListAllResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method BoardListAll not implemented") +} +func (*UnimplementedArduinoCoreServer) Compile(req *CompileReq, srv ArduinoCore_CompileServer) error { + return status.Errorf(codes.Unimplemented, "method Compile not implemented") +} +func (*UnimplementedArduinoCoreServer) PlatformInstall(req *PlatformInstallReq, srv ArduinoCore_PlatformInstallServer) error { + return status.Errorf(codes.Unimplemented, "method PlatformInstall not implemented") +} +func (*UnimplementedArduinoCoreServer) PlatformDownload(req *PlatformDownloadReq, srv ArduinoCore_PlatformDownloadServer) error { + return status.Errorf(codes.Unimplemented, "method PlatformDownload not implemented") +} +func (*UnimplementedArduinoCoreServer) PlatformUninstall(req *PlatformUninstallReq, srv ArduinoCore_PlatformUninstallServer) error { + return status.Errorf(codes.Unimplemented, "method PlatformUninstall not implemented") +} +func (*UnimplementedArduinoCoreServer) PlatformUpgrade(req *PlatformUpgradeReq, srv ArduinoCore_PlatformUpgradeServer) error { + return status.Errorf(codes.Unimplemented, "method PlatformUpgrade not implemented") +} +func (*UnimplementedArduinoCoreServer) Upload(req *UploadReq, srv ArduinoCore_UploadServer) error { + return status.Errorf(codes.Unimplemented, "method Upload not implemented") +} +func (*UnimplementedArduinoCoreServer) PlatformSearch(ctx context.Context, req *PlatformSearchReq) (*PlatformSearchResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method PlatformSearch not implemented") +} +func (*UnimplementedArduinoCoreServer) PlatformList(ctx context.Context, req *PlatformListReq) (*PlatformListResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method PlatformList not implemented") +} +func (*UnimplementedArduinoCoreServer) LibraryDownload(req *LibraryDownloadReq, srv ArduinoCore_LibraryDownloadServer) error { + return status.Errorf(codes.Unimplemented, "method LibraryDownload not implemented") +} +func (*UnimplementedArduinoCoreServer) LibraryInstall(req *LibraryInstallReq, srv ArduinoCore_LibraryInstallServer) error { + return status.Errorf(codes.Unimplemented, "method LibraryInstall not implemented") +} +func (*UnimplementedArduinoCoreServer) LibraryUninstall(req *LibraryUninstallReq, srv ArduinoCore_LibraryUninstallServer) error { + return status.Errorf(codes.Unimplemented, "method LibraryUninstall not implemented") +} +func (*UnimplementedArduinoCoreServer) LibraryUpgradeAll(req *LibraryUpgradeAllReq, srv ArduinoCore_LibraryUpgradeAllServer) error { + return status.Errorf(codes.Unimplemented, "method LibraryUpgradeAll not implemented") +} +func (*UnimplementedArduinoCoreServer) LibrarySearch(ctx context.Context, req *LibrarySearchReq) (*LibrarySearchResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method LibrarySearch not implemented") +} +func (*UnimplementedArduinoCoreServer) LibraryList(ctx context.Context, req *LibraryListReq) (*LibraryListResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method LibraryList not implemented") +} + func RegisterArduinoCoreServer(s *grpc.Server, srv ArduinoCoreServer) { s.RegisterService(&_ArduinoCore_serviceDesc, srv) } @@ -1257,7 +1417,7 @@ func _ArduinoCore_Destroy_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/cc.arduino.core.rpc.ArduinoCore/Destroy", + FullMethod: "/cc.arduino.cli.commands.ArduinoCore/Destroy", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ArduinoCoreServer).Destroy(ctx, req.(*DestroyReq)) @@ -1275,7 +1435,7 @@ func _ArduinoCore_Rescan_Handler(srv interface{}, ctx context.Context, dec func( } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/cc.arduino.core.rpc.ArduinoCore/Rescan", + FullMethod: "/cc.arduino.cli.commands.ArduinoCore/Rescan", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ArduinoCoreServer).Rescan(ctx, req.(*RescanReq)) @@ -1335,7 +1495,7 @@ func _ArduinoCore_Version_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/cc.arduino.core.rpc.ArduinoCore/Version", + FullMethod: "/cc.arduino.cli.commands.ArduinoCore/Version", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ArduinoCoreServer).Version(ctx, req.(*VersionReq)) @@ -1353,7 +1513,7 @@ func _ArduinoCore_BoardDetails_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/cc.arduino.core.rpc.ArduinoCore/BoardDetails", + FullMethod: "/cc.arduino.cli.commands.ArduinoCore/BoardDetails", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ArduinoCoreServer).BoardDetails(ctx, req.(*BoardDetailsReq)) @@ -1392,7 +1552,7 @@ func _ArduinoCore_BoardList_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/cc.arduino.core.rpc.ArduinoCore/BoardList", + FullMethod: "/cc.arduino.cli.commands.ArduinoCore/BoardList", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ArduinoCoreServer).BoardList(ctx, req.(*BoardListReq)) @@ -1410,7 +1570,7 @@ func _ArduinoCore_BoardListAll_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/cc.arduino.core.rpc.ArduinoCore/BoardListAll", + FullMethod: "/cc.arduino.cli.commands.ArduinoCore/BoardListAll", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ArduinoCoreServer).BoardListAll(ctx, req.(*BoardListAllReq)) @@ -1554,7 +1714,7 @@ func _ArduinoCore_PlatformSearch_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/cc.arduino.core.rpc.ArduinoCore/PlatformSearch", + FullMethod: "/cc.arduino.cli.commands.ArduinoCore/PlatformSearch", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ArduinoCoreServer).PlatformSearch(ctx, req.(*PlatformSearchReq)) @@ -1572,7 +1732,7 @@ func _ArduinoCore_PlatformList_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/cc.arduino.core.rpc.ArduinoCore/PlatformList", + FullMethod: "/cc.arduino.cli.commands.ArduinoCore/PlatformList", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ArduinoCoreServer).PlatformList(ctx, req.(*PlatformListReq)) @@ -1674,7 +1834,7 @@ func _ArduinoCore_LibrarySearch_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/cc.arduino.core.rpc.ArduinoCore/LibrarySearch", + FullMethod: "/cc.arduino.cli.commands.ArduinoCore/LibrarySearch", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ArduinoCoreServer).LibrarySearch(ctx, req.(*LibrarySearchReq)) @@ -1692,7 +1852,7 @@ func _ArduinoCore_LibraryList_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/cc.arduino.core.rpc.ArduinoCore/LibraryList", + FullMethod: "/cc.arduino.cli.commands.ArduinoCore/LibraryList", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ArduinoCoreServer).LibraryList(ctx, req.(*LibraryListReq)) @@ -1701,7 +1861,7 @@ func _ArduinoCore_LibraryList_Handler(srv interface{}, ctx context.Context, dec } var _ArduinoCore_serviceDesc = grpc.ServiceDesc{ - ServiceName: "cc.arduino.core.rpc.ArduinoCore", + ServiceName: "cc.arduino.cli.commands.ArduinoCore", HandlerType: (*ArduinoCoreServer)(nil), Methods: []grpc.MethodDesc{ { @@ -1817,73 +1977,5 @@ var _ArduinoCore_serviceDesc = grpc.ServiceDesc{ ServerStreams: true, }, }, - Metadata: "commands.proto", -} - -func init() { proto.RegisterFile("commands.proto", fileDescriptor_commands_92dd81084d7f582d) } - -var fileDescriptor_commands_92dd81084d7f582d = []byte{ - // 992 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xb4, 0x97, 0xdd, 0x72, 0xdb, 0x44, - 0x14, 0x80, 0x71, 0x5a, 0x9a, 0xe4, 0xd8, 0x4e, 0x9b, 0x6d, 0x80, 0x8c, 0x86, 0xd2, 0x54, 0x75, - 0x92, 0x96, 0xa1, 0x6e, 0x27, 0x70, 0xc3, 0x0d, 0x33, 0x6e, 0x42, 0x4b, 0xa6, 0x05, 0x3a, 0xa2, - 0x66, 0x98, 0xc2, 0xe0, 0x59, 0x4b, 0x1b, 0x67, 0x27, 0xb2, 0x56, 0xdd, 0x55, 0x5a, 0xf2, 0x00, - 0x3c, 0x11, 0x8f, 0xc1, 0x9b, 0xf0, 0x14, 0xec, 0xaf, 0x6c, 0x25, 0x92, 0x2c, 0x92, 0xe1, 0xca, - 0xde, 0x3d, 0xdf, 0xf9, 0xd9, 0xf3, 0x17, 0x07, 0xd6, 0x42, 0x36, 0x9d, 0xe2, 0x24, 0x12, 0xfd, - 0x94, 0xb3, 0x8c, 0xa1, 0xdb, 0x61, 0xd8, 0xc7, 0x3c, 0x3a, 0xa5, 0x09, 0xeb, 0x87, 0x8c, 0x93, - 0x3e, 0x4f, 0x43, 0xaf, 0xa3, 0x20, 0x96, 0x18, 0xc4, 0x6b, 0x8f, 0x99, 0x24, 0xec, 0xa1, 0x2b, - 0x45, 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74, 0xb3, 0xd9, 0xce, 0xf2, 0x66, 0x2a, 0x0f, - 0xec, 0x1c, 0x55, 0x9d, 0xf4, 0x0b, 0xa0, 0xce, 0x53, 0x08, 0x6b, 0x56, 0xe0, 0x86, 0x63, 0xa7, - 0x4e, 0x7b, 0x6e, 0x36, 0x76, 0x1b, 0x71, 0x6e, 0x34, 0xec, 0xfd, 0xac, 0x5d, 0x6b, 0x83, 0x2c, - 0x74, 0xeb, 0xc3, 0x86, 0xa4, 0x1b, 0x0d, 0x27, 0x31, 0xcd, 0x35, 0xa8, 0x1c, 0x8d, 0x0b, 0x5c, - 0xf5, 0x68, 0x94, 0xa0, 0xda, 0xdb, 0xef, 0xd0, 0xb5, 0x22, 0xdb, 0x64, 0xdb, 0x75, 0xea, 0xb3, - 0x1e, 0xdb, 0x69, 0x82, 0xc9, 0x2e, 0xf8, 0x05, 0xda, 0xf6, 0x52, 0x77, 0xd8, 0xfd, 0x3a, 0x35, - 0xd7, 0x60, 0xbd, 0xc5, 0x90, 0x48, 0x9f, 0xf6, 0xde, 0xf8, 0x13, 0x9a, 0x1d, 0x9f, 0x8e, 0x25, - 0x32, 0x7d, 0x6c, 0x71, 0xf7, 0xf9, 0x28, 0x8c, 0xe9, 0x63, 0xa9, 0x35, 0xbe, 0xa1, 0xff, 0xdd, - 0xfc, 0xf2, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xa3, 0xcb, 0xac, 0x65, 0xe4, 0x0e, 0x00, 0x00, + Metadata: "commands/commands.proto", } diff --git a/rpc/commands.proto b/rpc/commands/commands.proto similarity index 93% rename from rpc/commands.proto rename to rpc/commands/commands.proto index c74a99bbcde..0b32f723bcc 100644 --- a/rpc/commands.proto +++ b/rpc/commands/commands.proto @@ -17,16 +17,16 @@ syntax = "proto3"; -package cc.arduino.core.rpc; +package cc.arduino.cli.commands; -option go_package = "github.com/arduino/arduino-cli/rpc"; +option go_package = "github.com/arduino/arduino-cli/rpc/commands"; -import "common.proto"; -import "board.proto"; -import "compile.proto"; -import "core.proto"; -import "upload.proto"; -import "lib.proto"; +import "commands/common.proto"; +import "commands/board.proto"; +import "commands/compile.proto"; +import "commands/core.proto"; +import "commands/upload.proto"; +import "commands/lib.proto"; // The main Arduino Platform Service service ArduinoCore { diff --git a/rpc/common.pb.go b/rpc/commands/common.pb.go similarity index 64% rename from rpc/common.pb.go rename to rpc/commands/common.pb.go index 319ff23be3e..0d25d8218f5 100644 --- a/rpc/common.pb.go +++ b/rpc/commands/common.pb.go @@ -1,11 +1,13 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: common.proto +// source: commands/common.proto -package rpc // import "github.com/arduino/arduino-cli/rpc" +package commands -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal @@ -16,7 +18,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type Instance struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` @@ -29,16 +31,17 @@ func (m *Instance) Reset() { *m = Instance{} } func (m *Instance) String() string { return proto.CompactTextString(m) } func (*Instance) ProtoMessage() {} func (*Instance) Descriptor() ([]byte, []int) { - return fileDescriptor_common_2f2953b7902b8ec7, []int{0} + return fileDescriptor_0b273be58978a133, []int{0} } + func (m *Instance) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Instance.Unmarshal(m, b) } func (m *Instance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Instance.Marshal(b, m, deterministic) } -func (dst *Instance) XXX_Merge(src proto.Message) { - xxx_messageInfo_Instance.Merge(dst, src) +func (m *Instance) XXX_Merge(src proto.Message) { + xxx_messageInfo_Instance.Merge(m, src) } func (m *Instance) XXX_Size() int { return xxx_messageInfo_Instance.Size(m) @@ -71,16 +74,17 @@ func (m *DownloadProgress) Reset() { *m = DownloadProgress{} } func (m *DownloadProgress) String() string { return proto.CompactTextString(m) } func (*DownloadProgress) ProtoMessage() {} func (*DownloadProgress) Descriptor() ([]byte, []int) { - return fileDescriptor_common_2f2953b7902b8ec7, []int{1} + return fileDescriptor_0b273be58978a133, []int{1} } + func (m *DownloadProgress) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DownloadProgress.Unmarshal(m, b) } func (m *DownloadProgress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_DownloadProgress.Marshal(b, m, deterministic) } -func (dst *DownloadProgress) XXX_Merge(src proto.Message) { - xxx_messageInfo_DownloadProgress.Merge(dst, src) +func (m *DownloadProgress) XXX_Merge(src proto.Message) { + xxx_messageInfo_DownloadProgress.Merge(m, src) } func (m *DownloadProgress) XXX_Size() int { return xxx_messageInfo_DownloadProgress.Size(m) @@ -139,16 +143,17 @@ func (m *TaskProgress) Reset() { *m = TaskProgress{} } func (m *TaskProgress) String() string { return proto.CompactTextString(m) } func (*TaskProgress) ProtoMessage() {} func (*TaskProgress) Descriptor() ([]byte, []int) { - return fileDescriptor_common_2f2953b7902b8ec7, []int{2} + return fileDescriptor_0b273be58978a133, []int{2} } + func (m *TaskProgress) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TaskProgress.Unmarshal(m, b) } func (m *TaskProgress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskProgress.Marshal(b, m, deterministic) } -func (dst *TaskProgress) XXX_Merge(src proto.Message) { - xxx_messageInfo_TaskProgress.Merge(dst, src) +func (m *TaskProgress) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskProgress.Merge(m, src) } func (m *TaskProgress) XXX_Size() int { return xxx_messageInfo_TaskProgress.Size(m) @@ -181,29 +186,30 @@ func (m *TaskProgress) GetCompleted() bool { } func init() { - proto.RegisterType((*Instance)(nil), "cc.arduino.core.rpc.Instance") - proto.RegisterType((*DownloadProgress)(nil), "cc.arduino.core.rpc.DownloadProgress") - proto.RegisterType((*TaskProgress)(nil), "cc.arduino.core.rpc.TaskProgress") -} - -func init() { proto.RegisterFile("common.proto", fileDescriptor_common_2f2953b7902b8ec7) } - -var fileDescriptor_common_2f2953b7902b8ec7 = []byte{ - // 253 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x5c, 0x90, 0x4f, 0x4b, 0xc4, 0x30, - 0x14, 0xc4, 0xe9, 0x76, 0x57, 0xb7, 0x8f, 0x45, 0x96, 0x78, 0x09, 0xa2, 0x22, 0xc5, 0x83, 0x17, - 0xbb, 0x07, 0xbf, 0x81, 0x78, 0xf1, 0x26, 0xd5, 0xd3, 0x5e, 0x24, 0x9b, 0xc4, 0x1a, 0x4c, 0xf2, - 0x4a, 0x92, 0x22, 0xf8, 0x3d, 0xfc, 0xbe, 0x3e, 0x43, 0xeb, 0x9f, 0x3d, 0x65, 0x32, 0xf3, 0x18, - 0x7e, 0x0c, 0xac, 0x24, 0x3a, 0x87, 0xbe, 0xe9, 0x03, 0x26, 0x64, 0xc7, 0x52, 0x36, 0x22, 0xa8, - 0xc1, 0x78, 0x6c, 0x24, 0x06, 0xdd, 0x84, 0x5e, 0xd6, 0x27, 0xb0, 0xbc, 0xf7, 0x31, 0x09, 0x2f, - 0x35, 0x3b, 0x82, 0x99, 0x51, 0xbc, 0xb8, 0x28, 0xae, 0x16, 0x2d, 0xa9, 0xfa, 0xb3, 0x80, 0xf5, - 0x1d, 0xbe, 0x7b, 0x8b, 0x42, 0x3d, 0x04, 0xec, 0x82, 0x8e, 0x91, 0xad, 0xa1, 0x1c, 0x82, 0xcd, - 0x57, 0x55, 0xfb, 0x2d, 0x19, 0x83, 0xf9, 0x8b, 0xb1, 0x9a, 0xcf, 0xb2, 0x95, 0x35, 0x3b, 0x03, - 0x48, 0x98, 0x84, 0x7d, 0x8e, 0xe6, 0x43, 0xf3, 0x92, 0x92, 0xb2, 0xad, 0xb2, 0xf3, 0x48, 0x06, - 0x3b, 0x07, 0x50, 0x63, 0xb1, 0x56, 0x7c, 0x9e, 0xe3, 0x3f, 0x0e, 0x3b, 0x85, 0x8a, 0xd0, 0x7b, - 0xab, 0x13, 0xc5, 0x0b, 0x8a, 0x97, 0xed, 0xaf, 0x51, 0x6f, 0x61, 0xf5, 0x24, 0xe2, 0xdb, 0x0f, - 0x12, 0x01, 0x78, 0xe1, 0xf4, 0xc8, 0x94, 0x35, 0xe3, 0x70, 0xe8, 0x28, 0x13, 0xdd, 0xc4, 0x35, - 0x7d, 0xff, 0x77, 0x97, 0x7b, 0xdd, 0xb7, 0x97, 0xdb, 0xba, 0x33, 0xe9, 0x75, 0xd8, 0xd1, 0x44, - 0x6e, 0x33, 0xce, 0x35, 0xbd, 0xd7, 0xd2, 0x9a, 0x0d, 0xad, 0xb6, 0x3b, 0xc8, 0x8b, 0xde, 0x7c, - 0x05, 0x00, 0x00, 0xff, 0xff, 0x72, 0xf8, 0x1e, 0x93, 0x61, 0x01, 0x00, 0x00, + proto.RegisterType((*Instance)(nil), "cc.arduino.cli.commands.Instance") + proto.RegisterType((*DownloadProgress)(nil), "cc.arduino.cli.commands.DownloadProgress") + proto.RegisterType((*TaskProgress)(nil), "cc.arduino.cli.commands.TaskProgress") +} + +func init() { proto.RegisterFile("commands/common.proto", fileDescriptor_0b273be58978a133) } + +var fileDescriptor_0b273be58978a133 = []byte{ + // 263 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x90, 0xcd, 0x4a, 0xc4, 0x30, + 0x14, 0x85, 0xe9, 0xcf, 0xe8, 0xf4, 0x22, 0x32, 0x04, 0xc4, 0x20, 0x2a, 0xa5, 0xab, 0x82, 0x4c, + 0xbb, 0xf0, 0x0d, 0xc4, 0x8d, 0x3b, 0xa9, 0xae, 0x66, 0x23, 0x99, 0x24, 0xd6, 0x60, 0x9a, 0x5b, + 0x92, 0x14, 0x61, 0xde, 0xc3, 0xf7, 0x95, 0x86, 0xc6, 0xbf, 0x55, 0x4e, 0xce, 0x3d, 0x1c, 0x0e, + 0x1f, 0x9c, 0x71, 0x1c, 0x06, 0x66, 0x84, 0x6b, 0x67, 0x81, 0xa6, 0x19, 0x2d, 0x7a, 0x24, 0xe7, + 0x9c, 0x37, 0xcc, 0x8a, 0x49, 0x19, 0x6c, 0xb8, 0x56, 0x4d, 0x4c, 0x55, 0x17, 0xb0, 0x7e, 0x30, + 0xce, 0x33, 0xc3, 0x25, 0x39, 0x85, 0x54, 0x09, 0x9a, 0x94, 0x49, 0xbd, 0xea, 0x52, 0x25, 0xaa, + 0xcf, 0x04, 0x36, 0xf7, 0xf8, 0x61, 0x34, 0x32, 0xf1, 0x68, 0xb1, 0xb7, 0xd2, 0x39, 0xb2, 0x81, + 0x6c, 0xb2, 0x3a, 0xa4, 0x8a, 0x6e, 0x96, 0x84, 0x40, 0xfe, 0xaa, 0xb4, 0xa4, 0x69, 0xb0, 0x82, + 0x26, 0x57, 0x00, 0x1e, 0x3d, 0xd3, 0x2f, 0x4e, 0x1d, 0x24, 0xcd, 0xca, 0xa4, 0xce, 0xba, 0x22, + 0x38, 0x4f, 0xea, 0x20, 0xc9, 0x35, 0x80, 0x58, 0x8a, 0xa5, 0xa0, 0x79, 0x38, 0xff, 0x72, 0xc8, + 0x25, 0x14, 0x1c, 0x87, 0x51, 0x4b, 0x2f, 0x05, 0x5d, 0x95, 0x49, 0xbd, 0xee, 0x7e, 0x8c, 0x6a, + 0x07, 0x27, 0xcf, 0xcc, 0xbd, 0x7f, 0x4f, 0x22, 0x90, 0x1b, 0x36, 0xc8, 0x65, 0x53, 0xd0, 0x84, + 0xc2, 0xf1, 0x20, 0x9d, 0x63, 0x7d, 0xdc, 0x15, 0xbf, 0x7f, 0xbb, 0xb3, 0x7f, 0xdd, 0x77, 0xdb, + 0xdd, 0x4d, 0xaf, 0xfc, 0xdb, 0xb4, 0x9f, 0x11, 0xb5, 0x0b, 0xb2, 0xf8, 0x6e, 0xb9, 0x56, 0xad, + 0x1d, 0x79, 0x1b, 0xf1, 0xed, 0x8f, 0x02, 0xde, 0xdb, 0xaf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x77, + 0x28, 0x70, 0xdd, 0x77, 0x01, 0x00, 0x00, } diff --git a/rpc/common.proto b/rpc/commands/common.proto similarity index 90% rename from rpc/common.proto rename to rpc/commands/common.proto index e3bfa3ae29d..a6227d96afa 100644 --- a/rpc/common.proto +++ b/rpc/commands/common.proto @@ -17,9 +17,9 @@ syntax = "proto3"; -package cc.arduino.core.rpc; +package cc.arduino.cli.commands; -option go_package = "github.com/arduino/arduino-cli/rpc"; +option go_package = "github.com/arduino/arduino-cli/rpc/commands"; message Instance { int32 id = 1; } diff --git a/rpc/compile.pb.go b/rpc/commands/compile.pb.go similarity index 63% rename from rpc/compile.pb.go rename to rpc/commands/compile.pb.go index 0270b3a0605..74d0f0853cf 100644 --- a/rpc/compile.pb.go +++ b/rpc/commands/compile.pb.go @@ -1,11 +1,13 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: compile.proto +// source: commands/compile.proto -package rpc // import "github.com/arduino/arduino-cli/rpc" +package commands -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal @@ -16,7 +18,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type CompileReq struct { Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` @@ -41,16 +43,17 @@ func (m *CompileReq) Reset() { *m = CompileReq{} } func (m *CompileReq) String() string { return proto.CompactTextString(m) } func (*CompileReq) ProtoMessage() {} func (*CompileReq) Descriptor() ([]byte, []int) { - return fileDescriptor_compile_56a3ee3fd90c77e2, []int{0} + return fileDescriptor_86bc582849c76c3d, []int{0} } + func (m *CompileReq) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CompileReq.Unmarshal(m, b) } func (m *CompileReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_CompileReq.Marshal(b, m, deterministic) } -func (dst *CompileReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_CompileReq.Merge(dst, src) +func (m *CompileReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_CompileReq.Merge(m, src) } func (m *CompileReq) XXX_Size() int { return xxx_messageInfo_CompileReq.Size(m) @@ -164,16 +167,17 @@ func (m *CompileResp) Reset() { *m = CompileResp{} } func (m *CompileResp) String() string { return proto.CompactTextString(m) } func (*CompileResp) ProtoMessage() {} func (*CompileResp) Descriptor() ([]byte, []int) { - return fileDescriptor_compile_56a3ee3fd90c77e2, []int{1} + return fileDescriptor_86bc582849c76c3d, []int{1} } + func (m *CompileResp) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CompileResp.Unmarshal(m, b) } func (m *CompileResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_CompileResp.Marshal(b, m, deterministic) } -func (dst *CompileResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_CompileResp.Merge(dst, src) +func (m *CompileResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_CompileResp.Merge(m, src) } func (m *CompileResp) XXX_Size() int { return xxx_messageInfo_CompileResp.Size(m) @@ -199,35 +203,36 @@ func (m *CompileResp) GetErrStream() []byte { } func init() { - proto.RegisterType((*CompileReq)(nil), "cc.arduino.core.rpc.CompileReq") - proto.RegisterType((*CompileResp)(nil), "cc.arduino.core.rpc.CompileResp") -} - -func init() { proto.RegisterFile("compile.proto", fileDescriptor_compile_56a3ee3fd90c77e2) } - -var fileDescriptor_compile_56a3ee3fd90c77e2 = []byte{ - // 366 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x6c, 0x92, 0x4f, 0x6b, 0xe3, 0x30, - 0x10, 0xc5, 0xc9, 0x7f, 0x7b, 0x92, 0xec, 0x82, 0x76, 0x59, 0x44, 0xd8, 0x2c, 0x21, 0x2c, 0x25, - 0x97, 0x3a, 0xd0, 0x9e, 0x7a, 0x6d, 0xa0, 0x50, 0x7a, 0x09, 0xee, 0xad, 0x97, 0x62, 0xcb, 0xd3, - 0x58, 0x34, 0xb6, 0x1c, 0x49, 0x4e, 0xfa, 0xcd, 0xfa, 0xf5, 0x2a, 0x8f, 0xf3, 0x8f, 0xd0, 0x53, - 0x32, 0xbf, 0xf7, 0xf4, 0x34, 0xf6, 0x33, 0x0c, 0x85, 0xca, 0x0a, 0xb9, 0xc6, 0xa0, 0xd0, 0xca, - 0x2a, 0xf6, 0x4b, 0x88, 0x20, 0xd2, 0x49, 0x29, 0x73, 0x15, 0x08, 0xa5, 0x31, 0xd0, 0x85, 0x18, - 0x0d, 0x9c, 0x27, 0x53, 0x79, 0x6d, 0x99, 0x7e, 0xb6, 0x00, 0x16, 0xf5, 0xa1, 0x10, 0x37, 0xec, - 0x0e, 0x3c, 0x99, 0x1b, 0x1b, 0xe5, 0x02, 0x79, 0x63, 0xd2, 0x98, 0xf5, 0x6f, 0xc6, 0xc1, 0x37, - 0x21, 0xc1, 0xe3, 0xde, 0x14, 0x1e, 0xed, 0x8c, 0x41, 0xfb, 0x6d, 0x13, 0xe7, 0xbc, 0xe9, 0x8e, - 0xf9, 0x21, 0xfd, 0x67, 0xff, 0x00, 0xcc, 0x3b, 0x5a, 0x91, 0x2e, 0x23, 0x9b, 0xf2, 0x16, 0x29, - 0x67, 0x84, 0x5d, 0xc1, 0x0f, 0x93, 0xaa, 0xdd, 0x52, 0xab, 0x02, 0xb5, 0x95, 0x68, 0x78, 0xdb, - 0x79, 0xbc, 0xf0, 0x82, 0x56, 0x39, 0x85, 0x46, 0xb7, 0xb1, 0x40, 0x63, 0x78, 0x87, 0x3c, 0x67, - 0xa4, 0xca, 0x89, 0x4b, 0xb9, 0x4e, 0x16, 0x91, 0x48, 0x91, 0xee, 0xea, 0xd2, 0x5d, 0x17, 0x94, - 0xfd, 0x05, 0x9f, 0x08, 0x59, 0x7a, 0x64, 0x39, 0x01, 0x36, 0x83, 0x9f, 0xf5, 0x70, 0x5a, 0xc7, - 0x9b, 0xb4, 0x9c, 0xe7, 0x12, 0xb3, 0x11, 0x78, 0xbb, 0x48, 0xe7, 0x32, 0x5f, 0x19, 0xee, 0x53, - 0xcc, 0x71, 0x66, 0x1c, 0x7a, 0x5b, 0xd4, 0xb1, 0x32, 0xc8, 0x81, 0x16, 0x3d, 0x8c, 0xec, 0x37, - 0x74, 0x36, 0xa5, 0x44, 0xcb, 0xfb, 0xc4, 0xeb, 0x81, 0xfd, 0x81, 0xee, 0x56, 0x26, 0x4b, 0x99, - 0xf0, 0x01, 0x25, 0xed, 0xa7, 0xea, 0x99, 0xf1, 0xa3, 0x50, 0xda, 0x3e, 0xb8, 0x6e, 0xf8, 0xb0, - 0x7e, 0x77, 0x27, 0x32, 0x7d, 0x82, 0xfe, 0xb1, 0x38, 0x53, 0xb0, 0x31, 0x80, 0x2a, 0xed, 0xab, - 0xb1, 0x1a, 0xa3, 0x8c, 0xba, 0x1b, 0x84, 0xbe, 0x23, 0xcf, 0x04, 0x2a, 0x19, 0xb5, 0x3e, 0xc8, - 0xcd, 0x5a, 0x76, 0xa4, 0x96, 0xef, 0xff, 0xbf, 0x4c, 0x57, 0xd2, 0xa6, 0x65, 0xec, 0x2a, 0xce, - 0xe6, 0xfb, 0xba, 0x0f, 0xbf, 0xd7, 0x62, 0x2d, 0xe7, 0xae, 0xf5, 0xb8, 0x4b, 0xdf, 0xcc, 0xed, - 0x57, 0x00, 0x00, 0x00, 0xff, 0xff, 0x76, 0x47, 0x15, 0x51, 0x67, 0x02, 0x00, 0x00, + proto.RegisterType((*CompileReq)(nil), "cc.arduino.cli.commands.CompileReq") + proto.RegisterType((*CompileResp)(nil), "cc.arduino.cli.commands.CompileResp") +} + +func init() { proto.RegisterFile("commands/compile.proto", fileDescriptor_86bc582849c76c3d) } + +var fileDescriptor_86bc582849c76c3d = []byte{ + // 378 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0x4f, 0x8b, 0xdb, 0x30, + 0x14, 0xc4, 0x71, 0xfe, 0xda, 0x2f, 0x69, 0x0b, 0xa2, 0x4d, 0x45, 0x68, 0x8b, 0x9b, 0x43, 0x31, + 0x94, 0xd8, 0xd0, 0x9e, 0x7b, 0x69, 0xa0, 0x50, 0x7a, 0x09, 0xee, 0x6d, 0x2f, 0x8b, 0x2d, 0xbf, + 0x8d, 0xc5, 0xda, 0x92, 0x22, 0xc9, 0xc9, 0x7e, 0xb7, 0xfd, 0x72, 0x8b, 0xe5, 0x38, 0x09, 0x81, + 0x3d, 0xd9, 0xef, 0x37, 0xa3, 0x91, 0xec, 0x11, 0x2c, 0x98, 0xac, 0xeb, 0x4c, 0x14, 0x26, 0x61, + 0xb2, 0x56, 0xbc, 0xc2, 0x58, 0x69, 0x69, 0x25, 0xf9, 0xc8, 0x58, 0x9c, 0xe9, 0xa2, 0xe1, 0x42, + 0xc6, 0xac, 0xe2, 0x71, 0x6f, 0x5b, 0x7e, 0xb8, 0x5e, 0x50, 0x4b, 0xd1, 0xf9, 0x57, 0xcf, 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fe, 0xe1, 0x15, 0xd2, 0x37, 0xdd, 0xbf, 0xbb, 0x90, 0xd5, 0x3f, 0x98, + 0x9d, 0xcb, 0x33, 0x8a, 0x7c, 0x06, 0x90, 0x8d, 0xbd, 0x37, 0x56, 0x63, 0x56, 0xbb, 0xfe, 0xe6, + 0x69, 0x20, 0x1b, 0xfb, 0xdf, 0x81, 0x56, 0x46, 0xad, 0x7b, 0x79, 0xd0, 0xc9, 0xa8, 0x75, 0x27, + 0xff, 0x5e, 0xdf, 0x7d, 0xdf, 0x71, 0x5b, 0x36, 0x79, 0x5b, 0x71, 0x72, 0xaa, 0xbc, 0x7f, 0xae, + 0x59, 0xc5, 0x13, 0xad, 0x58, 0xd2, 0xd7, 0x9f, 0x4f, 0xdc, 0x05, 0xfa, 0xf9, 0x12, 0x00, 0x00, + 0xff, 0xff, 0xd2, 0xee, 0xb7, 0xd0, 0x8a, 0x02, 0x00, 0x00, } diff --git a/rpc/compile.proto b/rpc/commands/compile.proto similarity index 93% rename from rpc/compile.proto rename to rpc/commands/compile.proto index 599c312432e..f81e31e0d3c 100644 --- a/rpc/compile.proto +++ b/rpc/commands/compile.proto @@ -17,11 +17,11 @@ syntax = "proto3"; -package cc.arduino.core.rpc; +package cc.arduino.cli.commands; -option go_package = "github.com/arduino/arduino-cli/rpc"; +option go_package = "github.com/arduino/arduino-cli/rpc/commands"; -import "common.proto"; +import "commands/common.proto"; message CompileReq { Instance instance = 1; diff --git a/rpc/core.pb.go b/rpc/commands/core.pb.go similarity index 75% rename from rpc/core.pb.go rename to rpc/commands/core.pb.go index 1528620cc6a..80044e5a8d8 100644 --- a/rpc/core.pb.go +++ b/rpc/commands/core.pb.go @@ -1,11 +1,13 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: core.proto +// source: commands/core.proto -package rpc // import "github.com/arduino/arduino-cli/rpc" +package commands -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal @@ -16,7 +18,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type PlatformInstallReq struct { Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` @@ -32,16 +34,17 @@ func (m *PlatformInstallReq) Reset() { *m = PlatformInstallReq{} } func (m *PlatformInstallReq) String() string { return proto.CompactTextString(m) } func (*PlatformInstallReq) ProtoMessage() {} func (*PlatformInstallReq) Descriptor() ([]byte, []int) { - return fileDescriptor_core_e2572d3622c39927, []int{0} + return fileDescriptor_ed02318f567db566, []int{0} } + func (m *PlatformInstallReq) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_PlatformInstallReq.Unmarshal(m, b) } func (m *PlatformInstallReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_PlatformInstallReq.Marshal(b, m, deterministic) } -func (dst *PlatformInstallReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_PlatformInstallReq.Merge(dst, src) +func (m *PlatformInstallReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_PlatformInstallReq.Merge(m, src) } func (m *PlatformInstallReq) XXX_Size() int { return xxx_messageInfo_PlatformInstallReq.Size(m) @@ -92,16 +95,17 @@ func (m *PlatformInstallResp) Reset() { *m = PlatformInstallResp{} } func (m *PlatformInstallResp) String() string { return proto.CompactTextString(m) } func (*PlatformInstallResp) ProtoMessage() {} func (*PlatformInstallResp) Descriptor() ([]byte, []int) { - return fileDescriptor_core_e2572d3622c39927, []int{1} + return fileDescriptor_ed02318f567db566, []int{1} } + func (m *PlatformInstallResp) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_PlatformInstallResp.Unmarshal(m, b) } func (m *PlatformInstallResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_PlatformInstallResp.Marshal(b, m, deterministic) } -func (dst *PlatformInstallResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_PlatformInstallResp.Merge(dst, src) +func (m *PlatformInstallResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_PlatformInstallResp.Merge(m, src) } func (m *PlatformInstallResp) XXX_Size() int { return xxx_messageInfo_PlatformInstallResp.Size(m) @@ -140,16 +144,17 @@ func (m *PlatformDownloadReq) Reset() { *m = PlatformDownloadReq{} } func (m *PlatformDownloadReq) String() string { return proto.CompactTextString(m) } func (*PlatformDownloadReq) ProtoMessage() {} func (*PlatformDownloadReq) Descriptor() ([]byte, []int) { - return fileDescriptor_core_e2572d3622c39927, []int{2} + return fileDescriptor_ed02318f567db566, []int{2} } + func (m *PlatformDownloadReq) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_PlatformDownloadReq.Unmarshal(m, b) } func (m *PlatformDownloadReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_PlatformDownloadReq.Marshal(b, m, deterministic) } -func (dst *PlatformDownloadReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_PlatformDownloadReq.Merge(dst, src) +func (m *PlatformDownloadReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_PlatformDownloadReq.Merge(m, src) } func (m *PlatformDownloadReq) XXX_Size() int { return xxx_messageInfo_PlatformDownloadReq.Size(m) @@ -199,16 +204,17 @@ func (m *PlatformDownloadResp) Reset() { *m = PlatformDownloadResp{} } func (m *PlatformDownloadResp) String() string { return proto.CompactTextString(m) } func (*PlatformDownloadResp) ProtoMessage() {} func (*PlatformDownloadResp) Descriptor() ([]byte, []int) { - return fileDescriptor_core_e2572d3622c39927, []int{3} + return fileDescriptor_ed02318f567db566, []int{3} } + func (m *PlatformDownloadResp) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_PlatformDownloadResp.Unmarshal(m, b) } func (m *PlatformDownloadResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_PlatformDownloadResp.Marshal(b, m, deterministic) } -func (dst *PlatformDownloadResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_PlatformDownloadResp.Merge(dst, src) +func (m *PlatformDownloadResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_PlatformDownloadResp.Merge(m, src) } func (m *PlatformDownloadResp) XXX_Size() int { return xxx_messageInfo_PlatformDownloadResp.Size(m) @@ -239,16 +245,17 @@ func (m *PlatformUninstallReq) Reset() { *m = PlatformUninstallReq{} } func (m *PlatformUninstallReq) String() string { return proto.CompactTextString(m) } func (*PlatformUninstallReq) ProtoMessage() {} func (*PlatformUninstallReq) Descriptor() ([]byte, []int) { - return fileDescriptor_core_e2572d3622c39927, []int{4} + return fileDescriptor_ed02318f567db566, []int{4} } + func (m *PlatformUninstallReq) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_PlatformUninstallReq.Unmarshal(m, b) } func (m *PlatformUninstallReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_PlatformUninstallReq.Marshal(b, m, deterministic) } -func (dst *PlatformUninstallReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_PlatformUninstallReq.Merge(dst, src) +func (m *PlatformUninstallReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_PlatformUninstallReq.Merge(m, src) } func (m *PlatformUninstallReq) XXX_Size() int { return xxx_messageInfo_PlatformUninstallReq.Size(m) @@ -291,16 +298,17 @@ func (m *PlatformUninstallResp) Reset() { *m = PlatformUninstallResp{} } func (m *PlatformUninstallResp) String() string { return proto.CompactTextString(m) } func (*PlatformUninstallResp) ProtoMessage() {} func (*PlatformUninstallResp) Descriptor() ([]byte, []int) { - return fileDescriptor_core_e2572d3622c39927, []int{5} + return fileDescriptor_ed02318f567db566, []int{5} } + func (m *PlatformUninstallResp) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_PlatformUninstallResp.Unmarshal(m, b) } func (m *PlatformUninstallResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_PlatformUninstallResp.Marshal(b, m, deterministic) } -func (dst *PlatformUninstallResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_PlatformUninstallResp.Merge(dst, src) +func (m *PlatformUninstallResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_PlatformUninstallResp.Merge(m, src) } func (m *PlatformUninstallResp) XXX_Size() int { return xxx_messageInfo_PlatformUninstallResp.Size(m) @@ -331,16 +339,17 @@ func (m *PlatformUpgradeReq) Reset() { *m = PlatformUpgradeReq{} } func (m *PlatformUpgradeReq) String() string { return proto.CompactTextString(m) } func (*PlatformUpgradeReq) ProtoMessage() {} func (*PlatformUpgradeReq) Descriptor() ([]byte, []int) { - return fileDescriptor_core_e2572d3622c39927, []int{6} + return fileDescriptor_ed02318f567db566, []int{6} } + func (m *PlatformUpgradeReq) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_PlatformUpgradeReq.Unmarshal(m, b) } func (m *PlatformUpgradeReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_PlatformUpgradeReq.Marshal(b, m, deterministic) } -func (dst *PlatformUpgradeReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_PlatformUpgradeReq.Merge(dst, src) +func (m *PlatformUpgradeReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_PlatformUpgradeReq.Merge(m, src) } func (m *PlatformUpgradeReq) XXX_Size() int { return xxx_messageInfo_PlatformUpgradeReq.Size(m) @@ -384,16 +393,17 @@ func (m *PlatformUpgradeResp) Reset() { *m = PlatformUpgradeResp{} } func (m *PlatformUpgradeResp) String() string { return proto.CompactTextString(m) } func (*PlatformUpgradeResp) ProtoMessage() {} func (*PlatformUpgradeResp) Descriptor() ([]byte, []int) { - return fileDescriptor_core_e2572d3622c39927, []int{7} + return fileDescriptor_ed02318f567db566, []int{7} } + func (m *PlatformUpgradeResp) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_PlatformUpgradeResp.Unmarshal(m, b) } func (m *PlatformUpgradeResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_PlatformUpgradeResp.Marshal(b, m, deterministic) } -func (dst *PlatformUpgradeResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_PlatformUpgradeResp.Merge(dst, src) +func (m *PlatformUpgradeResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_PlatformUpgradeResp.Merge(m, src) } func (m *PlatformUpgradeResp) XXX_Size() int { return xxx_messageInfo_PlatformUpgradeResp.Size(m) @@ -430,16 +440,17 @@ func (m *PlatformSearchReq) Reset() { *m = PlatformSearchReq{} } func (m *PlatformSearchReq) String() string { return proto.CompactTextString(m) } func (*PlatformSearchReq) ProtoMessage() {} func (*PlatformSearchReq) Descriptor() ([]byte, []int) { - return fileDescriptor_core_e2572d3622c39927, []int{8} + return fileDescriptor_ed02318f567db566, []int{8} } + func (m *PlatformSearchReq) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_PlatformSearchReq.Unmarshal(m, b) } func (m *PlatformSearchReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_PlatformSearchReq.Marshal(b, m, deterministic) } -func (dst *PlatformSearchReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_PlatformSearchReq.Merge(dst, src) +func (m *PlatformSearchReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_PlatformSearchReq.Merge(m, src) } func (m *PlatformSearchReq) XXX_Size() int { return xxx_messageInfo_PlatformSearchReq.Size(m) @@ -475,16 +486,17 @@ func (m *PlatformSearchResp) Reset() { *m = PlatformSearchResp{} } func (m *PlatformSearchResp) String() string { return proto.CompactTextString(m) } func (*PlatformSearchResp) ProtoMessage() {} func (*PlatformSearchResp) Descriptor() ([]byte, []int) { - return fileDescriptor_core_e2572d3622c39927, []int{9} + return fileDescriptor_ed02318f567db566, []int{9} } + func (m *PlatformSearchResp) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_PlatformSearchResp.Unmarshal(m, b) } func (m *PlatformSearchResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_PlatformSearchResp.Marshal(b, m, deterministic) } -func (dst *PlatformSearchResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_PlatformSearchResp.Merge(dst, src) +func (m *PlatformSearchResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_PlatformSearchResp.Merge(m, src) } func (m *PlatformSearchResp) XXX_Size() int { return xxx_messageInfo_PlatformSearchResp.Size(m) @@ -515,16 +527,17 @@ func (m *SearchOutput) Reset() { *m = SearchOutput{} } func (m *SearchOutput) String() string { return proto.CompactTextString(m) } func (*SearchOutput) ProtoMessage() {} func (*SearchOutput) Descriptor() ([]byte, []int) { - return fileDescriptor_core_e2572d3622c39927, []int{10} + return fileDescriptor_ed02318f567db566, []int{10} } + func (m *SearchOutput) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_SearchOutput.Unmarshal(m, b) } func (m *SearchOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_SearchOutput.Marshal(b, m, deterministic) } -func (dst *SearchOutput) XXX_Merge(src proto.Message) { - xxx_messageInfo_SearchOutput.Merge(dst, src) +func (m *SearchOutput) XXX_Merge(src proto.Message) { + xxx_messageInfo_SearchOutput.Merge(m, src) } func (m *SearchOutput) XXX_Size() int { return xxx_messageInfo_SearchOutput.Size(m) @@ -568,16 +581,17 @@ func (m *PlatformListReq) Reset() { *m = PlatformListReq{} } func (m *PlatformListReq) String() string { return proto.CompactTextString(m) } func (*PlatformListReq) ProtoMessage() {} func (*PlatformListReq) Descriptor() ([]byte, []int) { - return fileDescriptor_core_e2572d3622c39927, []int{11} + return fileDescriptor_ed02318f567db566, []int{11} } + func (m *PlatformListReq) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_PlatformListReq.Unmarshal(m, b) } func (m *PlatformListReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_PlatformListReq.Marshal(b, m, deterministic) } -func (dst *PlatformListReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_PlatformListReq.Merge(dst, src) +func (m *PlatformListReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_PlatformListReq.Merge(m, src) } func (m *PlatformListReq) XXX_Size() int { return xxx_messageInfo_PlatformListReq.Size(m) @@ -613,16 +627,17 @@ func (m *PlatformListResp) Reset() { *m = PlatformListResp{} } func (m *PlatformListResp) String() string { return proto.CompactTextString(m) } func (*PlatformListResp) ProtoMessage() {} func (*PlatformListResp) Descriptor() ([]byte, []int) { - return fileDescriptor_core_e2572d3622c39927, []int{12} + return fileDescriptor_ed02318f567db566, []int{12} } + func (m *PlatformListResp) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_PlatformListResp.Unmarshal(m, b) } func (m *PlatformListResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_PlatformListResp.Marshal(b, m, deterministic) } -func (dst *PlatformListResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_PlatformListResp.Merge(dst, src) +func (m *PlatformListResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_PlatformListResp.Merge(m, src) } func (m *PlatformListResp) XXX_Size() int { return xxx_messageInfo_PlatformListResp.Size(m) @@ -654,16 +669,17 @@ func (m *InstalledPlatform) Reset() { *m = InstalledPlatform{} } func (m *InstalledPlatform) String() string { return proto.CompactTextString(m) } func (*InstalledPlatform) ProtoMessage() {} func (*InstalledPlatform) Descriptor() ([]byte, []int) { - return fileDescriptor_core_e2572d3622c39927, []int{13} + return fileDescriptor_ed02318f567db566, []int{13} } + func (m *InstalledPlatform) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_InstalledPlatform.Unmarshal(m, b) } func (m *InstalledPlatform) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_InstalledPlatform.Marshal(b, m, deterministic) } -func (dst *InstalledPlatform) XXX_Merge(src proto.Message) { - xxx_messageInfo_InstalledPlatform.Merge(dst, src) +func (m *InstalledPlatform) XXX_Merge(src proto.Message) { + xxx_messageInfo_InstalledPlatform.Merge(m, src) } func (m *InstalledPlatform) XXX_Size() int { return xxx_messageInfo_InstalledPlatform.Size(m) @@ -703,58 +719,59 @@ func (m *InstalledPlatform) GetName() string { } func init() { - proto.RegisterType((*PlatformInstallReq)(nil), "cc.arduino.core.rpc.PlatformInstallReq") - proto.RegisterType((*PlatformInstallResp)(nil), "cc.arduino.core.rpc.PlatformInstallResp") - proto.RegisterType((*PlatformDownloadReq)(nil), "cc.arduino.core.rpc.PlatformDownloadReq") - proto.RegisterType((*PlatformDownloadResp)(nil), "cc.arduino.core.rpc.PlatformDownloadResp") - proto.RegisterType((*PlatformUninstallReq)(nil), "cc.arduino.core.rpc.PlatformUninstallReq") - proto.RegisterType((*PlatformUninstallResp)(nil), "cc.arduino.core.rpc.PlatformUninstallResp") - proto.RegisterType((*PlatformUpgradeReq)(nil), "cc.arduino.core.rpc.PlatformUpgradeReq") - proto.RegisterType((*PlatformUpgradeResp)(nil), "cc.arduino.core.rpc.PlatformUpgradeResp") - proto.RegisterType((*PlatformSearchReq)(nil), "cc.arduino.core.rpc.PlatformSearchReq") - proto.RegisterType((*PlatformSearchResp)(nil), "cc.arduino.core.rpc.PlatformSearchResp") - proto.RegisterType((*SearchOutput)(nil), "cc.arduino.core.rpc.SearchOutput") - proto.RegisterType((*PlatformListReq)(nil), "cc.arduino.core.rpc.PlatformListReq") - proto.RegisterType((*PlatformListResp)(nil), "cc.arduino.core.rpc.PlatformListResp") - proto.RegisterType((*InstalledPlatform)(nil), "cc.arduino.core.rpc.InstalledPlatform") -} - -func init() { proto.RegisterFile("core.proto", fileDescriptor_core_e2572d3622c39927) } - -var fileDescriptor_core_e2572d3622c39927 = []byte{ - // 529 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xd4, 0x55, 0x5f, 0x6f, 0xd3, 0x3e, - 0x14, 0x55, 0xbb, 0x6a, 0xbf, 0xf6, 0xae, 0xfb, 0x53, 0xef, 0x07, 0xaa, 0x10, 0x08, 0xb0, 0x18, - 0x82, 0x07, 0x3a, 0x09, 0x9e, 0x78, 0x1c, 0x9a, 0x90, 0x2a, 0x55, 0xac, 0x0a, 0x14, 0x09, 0x84, - 0x14, 0xb9, 0x8e, 0xc9, 0xac, 0x25, 0x71, 0xb0, 0x1d, 0x10, 0x5f, 0x06, 0xf1, 0x31, 0xe0, 0xdb, - 0xe1, 0x38, 0x76, 0x9a, 0x91, 0xee, 0x85, 0xf1, 0x50, 0x9e, 0x9a, 0x7b, 0x72, 0x72, 0xee, 0xf1, - 0xf1, 0xbd, 0x2a, 0x00, 0x15, 0x92, 0x4d, 0x72, 0x29, 0xb4, 0x40, 0x87, 0x94, 0x4e, 0x88, 0x8c, - 0x0a, 0x9e, 0x89, 0x89, 0x85, 0x65, 0x4e, 0x6f, 0x0d, 0xa9, 0x48, 0x53, 0x91, 0x55, 0x14, 0xfc, - 0xa3, 0x03, 0x68, 0x9e, 0x10, 0xfd, 0x51, 0xc8, 0x74, 0x9a, 0x29, 0x4d, 0x92, 0x24, 0x60, 0x9f, - 0xd0, 0x73, 0xe8, 0xf3, 0xb2, 0xca, 0x28, 0x1b, 0x77, 0xee, 0x75, 0x1e, 0xed, 0x3c, 0xbd, 0x33, - 0x59, 0x23, 0x36, 0x99, 0x3a, 0x52, 0x50, 0xd3, 0xd1, 0x63, 0x38, 0xc8, 0x9d, 0x60, 0x98, 0x13, - 0x7a, 0x41, 0x62, 0x36, 0xee, 0x1a, 0x89, 0x41, 0xb0, 0xef, 0xf1, 0x79, 0x05, 0x23, 0x0c, 0x43, - 0x22, 0xe9, 0x39, 0xd7, 0x8c, 0xea, 0x42, 0xb2, 0xf1, 0x96, 0xa5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x86, 0xcd, 0xb7, 0x68, 0x0f, 0xba, 0xd3, 0x53, 0x7b, 0x86, 0x41, 0x60, 0x9e, 0xca, 0x5d, 0x7d, - 0xeb, 0x76, 0xb5, 0xb2, 0xe6, 0x4b, 0x84, 0xa0, 0xf7, 0x8a, 0xa4, 0xfe, 0x1e, 0xed, 0x33, 0x56, - 0xb0, 0xef, 0xbd, 0xce, 0xb8, 0xd2, 0xd7, 0x8c, 0xe6, 0x08, 0xf6, 0x8a, 0x3c, 0x22, 0x9a, 0x2c, - 0x13, 0x16, 0x8a, 0x2c, 0xf9, 0x6a, 0x2d, 0xf4, 0x83, 0xdd, 0x1a, 0x3d, 0x33, 0x20, 0xe6, 0x70, - 0x70, 0xb9, 0xa9, 0x89, 0x67, 0x01, 0xc8, 0x2d, 0x10, 0x8b, 0x42, 0x3f, 0x89, 0x2e, 0xa3, 0x87, - 0x57, 0xf7, 0x2f, 0xe9, 0x5e, 0x2b, 0x18, 0xf1, 0xdf, 0x21, 0x9c, 0xc2, 0xa8, 0xc5, 0x6b, 0x45, - 0x76, 0x1b, 0x06, 0x35, 0xc9, 0x85, 0xb6, 0x02, 0xd0, 0x4d, 0xd8, 0x9e, 0x11, 0xcd, 0x94, 0x76, - 0xc1, 0xb9, 0xaa, 0x8e, 0xb3, 0xb7, 0x8a, 0xf3, 0xc5, 0x83, 0xf7, 0x38, 0xe6, 0xfa, 0xbc, 0x58, - 0x1a, 0x9b, 0xe9, 0xb1, 0xb3, 0xec, 0x7f, 0x9f, 0xd0, 0x84, 0x1f, 0x1b, 0xe7, 0xcb, 0x6d, 0xfb, - 0xaf, 0xfa, 0xec, 0x57, 0x00, 0x00, 0x00, 0xff, 0xff, 0x89, 0x42, 0xfc, 0x44, 0x86, 0x07, 0x00, + proto.RegisterType((*PlatformInstallReq)(nil), "cc.arduino.cli.commands.PlatformInstallReq") + proto.RegisterType((*PlatformInstallResp)(nil), "cc.arduino.cli.commands.PlatformInstallResp") + proto.RegisterType((*PlatformDownloadReq)(nil), "cc.arduino.cli.commands.PlatformDownloadReq") + proto.RegisterType((*PlatformDownloadResp)(nil), "cc.arduino.cli.commands.PlatformDownloadResp") + proto.RegisterType((*PlatformUninstallReq)(nil), "cc.arduino.cli.commands.PlatformUninstallReq") + proto.RegisterType((*PlatformUninstallResp)(nil), "cc.arduino.cli.commands.PlatformUninstallResp") + proto.RegisterType((*PlatformUpgradeReq)(nil), "cc.arduino.cli.commands.PlatformUpgradeReq") + proto.RegisterType((*PlatformUpgradeResp)(nil), "cc.arduino.cli.commands.PlatformUpgradeResp") + proto.RegisterType((*PlatformSearchReq)(nil), "cc.arduino.cli.commands.PlatformSearchReq") + proto.RegisterType((*PlatformSearchResp)(nil), "cc.arduino.cli.commands.PlatformSearchResp") + proto.RegisterType((*SearchOutput)(nil), "cc.arduino.cli.commands.SearchOutput") + proto.RegisterType((*PlatformListReq)(nil), "cc.arduino.cli.commands.PlatformListReq") + proto.RegisterType((*PlatformListResp)(nil), "cc.arduino.cli.commands.PlatformListResp") + proto.RegisterType((*InstalledPlatform)(nil), "cc.arduino.cli.commands.InstalledPlatform") +} + +func init() { proto.RegisterFile("commands/core.proto", fileDescriptor_ed02318f567db566) } + +var fileDescriptor_ed02318f567db566 = []byte{ + // 545 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x55, 0x5d, 0x6f, 0xd3, 0x30, + 0x14, 0x55, 0xba, 0x69, 0xb4, 0x77, 0xdd, 0x47, 0x3d, 0x06, 0x11, 0x42, 0xa2, 0x58, 0x9a, 0xb4, + 0x81, 0x96, 0x4a, 0xf0, 0xcc, 0x03, 0xa8, 0x3c, 0x14, 0x55, 0xac, 0x0a, 0x0c, 0x09, 0x24, 0x54, + 0x5c, 0xc7, 0x64, 0x51, 0x13, 0xdb, 0xd8, 0x0e, 0xd3, 0xfe, 0x0e, 0xe2, 0x81, 0x1f, 0x01, 0xff, + 0x0d, 0x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, 0xe0, 0xe9, + 0x55, 0x21, 0xa3, 0x19, 0xee, 0x54, 0xd9, 0x33, 0x9e, 0x5e, 0xe1, 0x0c, 0xf6, 0xaf, 0x5f, 0xac, + 0x25, 0x7a, 0x0f, 0xc8, 0x2e, 0x17, 0x8b, 0xc6, 0x6e, 0x3a, 0xad, 0x57, 0x8f, 0x6e, 0xd6, 0x30, + 0x2b, 0x71, 0x7c, 0x61, 0x27, 0xf9, 0x33, 0x85, 0x33, 0xe8, 0x2c, 0xe0, 0x16, 0xac, 0xbb, 0x0f, + 0xad, 0x0a, 0x64, 0xcd, 0x9b, 0x27, 0xd0, 0x1d, 0xd8, 0x1a, 0x12, 0xc3, 0xb4, 0xb1, 0x06, 0xda, + 0xa8, 0xb2, 0x75, 0x73, 0x6e, 0xeb, 0x8b, 0xd3, 0x0f, 0x8f, 0xe3, 0xc4, 0x5c, 0xe4, 0x93, 0x99, + 0xcc, 0x9e, 0x95, 0xed, 0x7e, 0x4f, 0x69, 0x9a, 0xf4, 0x94, 0xa4, 0x3d, 0xd7, 0xc2, 0x64, 0xab, + 0xf8, 0x2c, 0x3f, 0xfd, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x90, 0x87, 0x85, 0xa1, 0xdd, 0x07, 0x00, 0x00, } diff --git a/rpc/core.proto b/rpc/commands/core.proto similarity index 94% rename from rpc/core.proto rename to rpc/commands/core.proto index f10d628b35b..85a2ce9738f 100644 --- a/rpc/core.proto +++ b/rpc/commands/core.proto @@ -17,11 +17,11 @@ syntax = "proto3"; -package cc.arduino.core.rpc; +package cc.arduino.cli.commands; -option go_package = "github.com/arduino/arduino-cli/rpc"; +option go_package = "github.com/arduino/arduino-cli/rpc/commands"; -import "common.proto"; +import "commands/common.proto"; message PlatformInstallReq { Instance instance = 1; diff --git a/rpc/lib.pb.go b/rpc/commands/lib.pb.go similarity index 73% rename from rpc/lib.pb.go rename to rpc/commands/lib.pb.go index 8444a9a3d82..5b81fb86250 100644 --- a/rpc/lib.pb.go +++ b/rpc/commands/lib.pb.go @@ -1,11 +1,13 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: lib.proto +// source: commands/lib.proto -package rpc // import "github.com/arduino/arduino-cli/rpc" +package commands -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal @@ -16,7 +18,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type LibraryLayout int32 @@ -29,6 +31,7 @@ var LibraryLayout_name = map[int32]string{ 0: "flat_layout", 1: "recursive_layout", } + var LibraryLayout_value = map[string]int32{ "flat_layout": 0, "recursive_layout": 1, @@ -37,8 +40,9 @@ var LibraryLayout_value = map[string]int32{ func (x LibraryLayout) String() string { return proto.EnumName(LibraryLayout_name, int32(x)) } + func (LibraryLayout) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_lib_f7260005a615a6c1, []int{0} + return fileDescriptor_9feed0d29806df6c, []int{0} } type LibraryLocation int32 @@ -56,6 +60,7 @@ var LibraryLocation_name = map[int32]string{ 2: "referenced_platform_builtin", 3: "sketchbook", } + var LibraryLocation_value = map[string]int32{ "ide_builtin": 0, "platform_builtin": 1, @@ -66,8 +71,9 @@ var LibraryLocation_value = map[string]int32{ func (x LibraryLocation) String() string { return proto.EnumName(LibraryLocation_name, int32(x)) } + func (LibraryLocation) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_lib_f7260005a615a6c1, []int{1} + return fileDescriptor_9feed0d29806df6c, []int{1} } type LibraryDownloadReq struct { @@ -83,16 +89,17 @@ func (m *LibraryDownloadReq) Reset() { *m = LibraryDownloadReq{} } func (m *LibraryDownloadReq) String() string { return proto.CompactTextString(m) } func (*LibraryDownloadReq) ProtoMessage() {} func (*LibraryDownloadReq) Descriptor() ([]byte, []int) { - return fileDescriptor_lib_f7260005a615a6c1, []int{0} + return fileDescriptor_9feed0d29806df6c, []int{0} } + func (m *LibraryDownloadReq) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_LibraryDownloadReq.Unmarshal(m, b) } func (m *LibraryDownloadReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_LibraryDownloadReq.Marshal(b, m, deterministic) } -func (dst *LibraryDownloadReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_LibraryDownloadReq.Merge(dst, src) +func (m *LibraryDownloadReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_LibraryDownloadReq.Merge(m, src) } func (m *LibraryDownloadReq) XXX_Size() int { return xxx_messageInfo_LibraryDownloadReq.Size(m) @@ -135,16 +142,17 @@ func (m *LibraryDownloadResp) Reset() { *m = LibraryDownloadResp{} } func (m *LibraryDownloadResp) String() string { return proto.CompactTextString(m) } func (*LibraryDownloadResp) ProtoMessage() {} func (*LibraryDownloadResp) Descriptor() ([]byte, []int) { - return fileDescriptor_lib_f7260005a615a6c1, []int{1} + return fileDescriptor_9feed0d29806df6c, []int{1} } + func (m *LibraryDownloadResp) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_LibraryDownloadResp.Unmarshal(m, b) } func (m *LibraryDownloadResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_LibraryDownloadResp.Marshal(b, m, deterministic) } -func (dst *LibraryDownloadResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_LibraryDownloadResp.Merge(dst, src) +func (m *LibraryDownloadResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_LibraryDownloadResp.Merge(m, src) } func (m *LibraryDownloadResp) XXX_Size() int { return xxx_messageInfo_LibraryDownloadResp.Size(m) @@ -175,16 +183,17 @@ func (m *LibraryInstallReq) Reset() { *m = LibraryInstallReq{} } func (m *LibraryInstallReq) String() string { return proto.CompactTextString(m) } func (*LibraryInstallReq) ProtoMessage() {} func (*LibraryInstallReq) Descriptor() ([]byte, []int) { - return fileDescriptor_lib_f7260005a615a6c1, []int{2} + return fileDescriptor_9feed0d29806df6c, []int{2} } + func (m *LibraryInstallReq) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_LibraryInstallReq.Unmarshal(m, b) } func (m *LibraryInstallReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_LibraryInstallReq.Marshal(b, m, deterministic) } -func (dst *LibraryInstallReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_LibraryInstallReq.Merge(dst, src) +func (m *LibraryInstallReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_LibraryInstallReq.Merge(m, src) } func (m *LibraryInstallReq) XXX_Size() int { return xxx_messageInfo_LibraryInstallReq.Size(m) @@ -228,16 +237,17 @@ func (m *LibraryInstallResp) Reset() { *m = LibraryInstallResp{} } func (m *LibraryInstallResp) String() string { return proto.CompactTextString(m) } func (*LibraryInstallResp) ProtoMessage() {} func (*LibraryInstallResp) Descriptor() ([]byte, []int) { - return fileDescriptor_lib_f7260005a615a6c1, []int{3} + return fileDescriptor_9feed0d29806df6c, []int{3} } + func (m *LibraryInstallResp) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_LibraryInstallResp.Unmarshal(m, b) } func (m *LibraryInstallResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_LibraryInstallResp.Marshal(b, m, deterministic) } -func (dst *LibraryInstallResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_LibraryInstallResp.Merge(dst, src) +func (m *LibraryInstallResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_LibraryInstallResp.Merge(m, src) } func (m *LibraryInstallResp) XXX_Size() int { return xxx_messageInfo_LibraryInstallResp.Size(m) @@ -275,16 +285,17 @@ func (m *LibraryUninstallReq) Reset() { *m = LibraryUninstallReq{} } func (m *LibraryUninstallReq) String() string { return proto.CompactTextString(m) } func (*LibraryUninstallReq) ProtoMessage() {} func (*LibraryUninstallReq) Descriptor() ([]byte, []int) { - return fileDescriptor_lib_f7260005a615a6c1, []int{4} + return fileDescriptor_9feed0d29806df6c, []int{4} } + func (m *LibraryUninstallReq) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_LibraryUninstallReq.Unmarshal(m, b) } func (m *LibraryUninstallReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_LibraryUninstallReq.Marshal(b, m, deterministic) } -func (dst *LibraryUninstallReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_LibraryUninstallReq.Merge(dst, src) +func (m *LibraryUninstallReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_LibraryUninstallReq.Merge(m, src) } func (m *LibraryUninstallReq) XXX_Size() int { return xxx_messageInfo_LibraryUninstallReq.Size(m) @@ -327,16 +338,17 @@ func (m *LibraryUninstallResp) Reset() { *m = LibraryUninstallResp{} } func (m *LibraryUninstallResp) String() string { return proto.CompactTextString(m) } func (*LibraryUninstallResp) ProtoMessage() {} func (*LibraryUninstallResp) Descriptor() ([]byte, []int) { - return fileDescriptor_lib_f7260005a615a6c1, []int{5} + return fileDescriptor_9feed0d29806df6c, []int{5} } + func (m *LibraryUninstallResp) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_LibraryUninstallResp.Unmarshal(m, b) } func (m *LibraryUninstallResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_LibraryUninstallResp.Marshal(b, m, deterministic) } -func (dst *LibraryUninstallResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_LibraryUninstallResp.Merge(dst, src) +func (m *LibraryUninstallResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_LibraryUninstallResp.Merge(m, src) } func (m *LibraryUninstallResp) XXX_Size() int { return xxx_messageInfo_LibraryUninstallResp.Size(m) @@ -365,16 +377,17 @@ func (m *LibraryUpgradeAllReq) Reset() { *m = LibraryUpgradeAllReq{} } func (m *LibraryUpgradeAllReq) String() string { return proto.CompactTextString(m) } func (*LibraryUpgradeAllReq) ProtoMessage() {} func (*LibraryUpgradeAllReq) Descriptor() ([]byte, []int) { - return fileDescriptor_lib_f7260005a615a6c1, []int{6} + return fileDescriptor_9feed0d29806df6c, []int{6} } + func (m *LibraryUpgradeAllReq) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_LibraryUpgradeAllReq.Unmarshal(m, b) } func (m *LibraryUpgradeAllReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_LibraryUpgradeAllReq.Marshal(b, m, deterministic) } -func (dst *LibraryUpgradeAllReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_LibraryUpgradeAllReq.Merge(dst, src) +func (m *LibraryUpgradeAllReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_LibraryUpgradeAllReq.Merge(m, src) } func (m *LibraryUpgradeAllReq) XXX_Size() int { return xxx_messageInfo_LibraryUpgradeAllReq.Size(m) @@ -404,16 +417,17 @@ func (m *LibraryUpgradeAllResp) Reset() { *m = LibraryUpgradeAllResp{} } func (m *LibraryUpgradeAllResp) String() string { return proto.CompactTextString(m) } func (*LibraryUpgradeAllResp) ProtoMessage() {} func (*LibraryUpgradeAllResp) Descriptor() ([]byte, []int) { - return fileDescriptor_lib_f7260005a615a6c1, []int{7} + return fileDescriptor_9feed0d29806df6c, []int{7} } + func (m *LibraryUpgradeAllResp) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_LibraryUpgradeAllResp.Unmarshal(m, b) } func (m *LibraryUpgradeAllResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_LibraryUpgradeAllResp.Marshal(b, m, deterministic) } -func (dst *LibraryUpgradeAllResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_LibraryUpgradeAllResp.Merge(dst, src) +func (m *LibraryUpgradeAllResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_LibraryUpgradeAllResp.Merge(m, src) } func (m *LibraryUpgradeAllResp) XXX_Size() int { return xxx_messageInfo_LibraryUpgradeAllResp.Size(m) @@ -450,16 +464,17 @@ func (m *LibrarySearchReq) Reset() { *m = LibrarySearchReq{} } func (m *LibrarySearchReq) String() string { return proto.CompactTextString(m) } func (*LibrarySearchReq) ProtoMessage() {} func (*LibrarySearchReq) Descriptor() ([]byte, []int) { - return fileDescriptor_lib_f7260005a615a6c1, []int{8} + return fileDescriptor_9feed0d29806df6c, []int{8} } + func (m *LibrarySearchReq) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_LibrarySearchReq.Unmarshal(m, b) } func (m *LibrarySearchReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_LibrarySearchReq.Marshal(b, m, deterministic) } -func (dst *LibrarySearchReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_LibrarySearchReq.Merge(dst, src) +func (m *LibrarySearchReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_LibrarySearchReq.Merge(m, src) } func (m *LibrarySearchReq) XXX_Size() int { return xxx_messageInfo_LibrarySearchReq.Size(m) @@ -495,16 +510,17 @@ func (m *LibrarySearchResp) Reset() { *m = LibrarySearchResp{} } func (m *LibrarySearchResp) String() string { return proto.CompactTextString(m) } func (*LibrarySearchResp) ProtoMessage() {} func (*LibrarySearchResp) Descriptor() ([]byte, []int) { - return fileDescriptor_lib_f7260005a615a6c1, []int{9} + return fileDescriptor_9feed0d29806df6c, []int{9} } + func (m *LibrarySearchResp) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_LibrarySearchResp.Unmarshal(m, b) } func (m *LibrarySearchResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_LibrarySearchResp.Marshal(b, m, deterministic) } -func (dst *LibrarySearchResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_LibrarySearchResp.Merge(dst, src) +func (m *LibrarySearchResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_LibrarySearchResp.Merge(m, src) } func (m *LibrarySearchResp) XXX_Size() int { return xxx_messageInfo_LibrarySearchResp.Size(m) @@ -535,16 +551,17 @@ func (m *SearchedLibrary) Reset() { *m = SearchedLibrary{} } func (m *SearchedLibrary) String() string { return proto.CompactTextString(m) } func (*SearchedLibrary) ProtoMessage() {} func (*SearchedLibrary) Descriptor() ([]byte, []int) { - return fileDescriptor_lib_f7260005a615a6c1, []int{10} + return fileDescriptor_9feed0d29806df6c, []int{10} } + func (m *SearchedLibrary) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_SearchedLibrary.Unmarshal(m, b) } func (m *SearchedLibrary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_SearchedLibrary.Marshal(b, m, deterministic) } -func (dst *SearchedLibrary) XXX_Merge(src proto.Message) { - xxx_messageInfo_SearchedLibrary.Merge(dst, src) +func (m *SearchedLibrary) XXX_Merge(src proto.Message) { + xxx_messageInfo_SearchedLibrary.Merge(m, src) } func (m *SearchedLibrary) XXX_Size() int { return xxx_messageInfo_SearchedLibrary.Size(m) @@ -596,16 +613,17 @@ func (m *LibraryRelease) Reset() { *m = LibraryRelease{} } func (m *LibraryRelease) String() string { return proto.CompactTextString(m) } func (*LibraryRelease) ProtoMessage() {} func (*LibraryRelease) Descriptor() ([]byte, []int) { - return fileDescriptor_lib_f7260005a615a6c1, []int{11} + return fileDescriptor_9feed0d29806df6c, []int{11} } + func (m *LibraryRelease) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_LibraryRelease.Unmarshal(m, b) } func (m *LibraryRelease) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_LibraryRelease.Marshal(b, m, deterministic) } -func (dst *LibraryRelease) XXX_Merge(src proto.Message) { - xxx_messageInfo_LibraryRelease.Merge(dst, src) +func (m *LibraryRelease) XXX_Merge(src proto.Message) { + xxx_messageInfo_LibraryRelease.Merge(m, src) } func (m *LibraryRelease) XXX_Size() int { return xxx_messageInfo_LibraryRelease.Size(m) @@ -701,16 +719,17 @@ func (m *DownloadResource) Reset() { *m = DownloadResource{} } func (m *DownloadResource) String() string { return proto.CompactTextString(m) } func (*DownloadResource) ProtoMessage() {} func (*DownloadResource) Descriptor() ([]byte, []int) { - return fileDescriptor_lib_f7260005a615a6c1, []int{12} + return fileDescriptor_9feed0d29806df6c, []int{12} } + func (m *DownloadResource) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DownloadResource.Unmarshal(m, b) } func (m *DownloadResource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_DownloadResource.Marshal(b, m, deterministic) } -func (dst *DownloadResource) XXX_Merge(src proto.Message) { - xxx_messageInfo_DownloadResource.Merge(dst, src) +func (m *DownloadResource) XXX_Merge(src proto.Message) { + xxx_messageInfo_DownloadResource.Merge(m, src) } func (m *DownloadResource) XXX_Size() int { return xxx_messageInfo_DownloadResource.Size(m) @@ -769,16 +788,17 @@ func (m *LibraryListReq) Reset() { *m = LibraryListReq{} } func (m *LibraryListReq) String() string { return proto.CompactTextString(m) } func (*LibraryListReq) ProtoMessage() {} func (*LibraryListReq) Descriptor() ([]byte, []int) { - return fileDescriptor_lib_f7260005a615a6c1, []int{13} + return fileDescriptor_9feed0d29806df6c, []int{13} } + func (m *LibraryListReq) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_LibraryListReq.Unmarshal(m, b) } func (m *LibraryListReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_LibraryListReq.Marshal(b, m, deterministic) } -func (dst *LibraryListReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_LibraryListReq.Merge(dst, src) +func (m *LibraryListReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_LibraryListReq.Merge(m, src) } func (m *LibraryListReq) XXX_Size() int { return xxx_messageInfo_LibraryListReq.Size(m) @@ -821,16 +841,17 @@ func (m *LibraryListResp) Reset() { *m = LibraryListResp{} } func (m *LibraryListResp) String() string { return proto.CompactTextString(m) } func (*LibraryListResp) ProtoMessage() {} func (*LibraryListResp) Descriptor() ([]byte, []int) { - return fileDescriptor_lib_f7260005a615a6c1, []int{14} + return fileDescriptor_9feed0d29806df6c, []int{14} } + func (m *LibraryListResp) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_LibraryListResp.Unmarshal(m, b) } func (m *LibraryListResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_LibraryListResp.Marshal(b, m, deterministic) } -func (dst *LibraryListResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_LibraryListResp.Merge(dst, src) +func (m *LibraryListResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_LibraryListResp.Merge(m, src) } func (m *LibraryListResp) XXX_Size() int { return xxx_messageInfo_LibraryListResp.Size(m) @@ -860,16 +881,17 @@ func (m *InstalledLibrary) Reset() { *m = InstalledLibrary{} } func (m *InstalledLibrary) String() string { return proto.CompactTextString(m) } func (*InstalledLibrary) ProtoMessage() {} func (*InstalledLibrary) Descriptor() ([]byte, []int) { - return fileDescriptor_lib_f7260005a615a6c1, []int{15} + return fileDescriptor_9feed0d29806df6c, []int{15} } + func (m *InstalledLibrary) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_InstalledLibrary.Unmarshal(m, b) } func (m *InstalledLibrary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_InstalledLibrary.Marshal(b, m, deterministic) } -func (dst *InstalledLibrary) XXX_Merge(src proto.Message) { - xxx_messageInfo_InstalledLibrary.Merge(dst, src) +func (m *InstalledLibrary) XXX_Merge(src proto.Message) { + xxx_messageInfo_InstalledLibrary.Merge(m, src) } func (m *InstalledLibrary) XXX_Size() int { return xxx_messageInfo_InstalledLibrary.Size(m) @@ -927,16 +949,17 @@ func (m *Library) Reset() { *m = Library{} } func (m *Library) String() string { return proto.CompactTextString(m) } func (*Library) ProtoMessage() {} func (*Library) Descriptor() ([]byte, []int) { - return fileDescriptor_lib_f7260005a615a6c1, []int{16} + return fileDescriptor_9feed0d29806df6c, []int{16} } + func (m *Library) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Library.Unmarshal(m, b) } func (m *Library) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Library.Marshal(b, m, deterministic) } -func (dst *Library) XXX_Merge(src proto.Message) { - xxx_messageInfo_Library.Merge(dst, src) +func (m *Library) XXX_Merge(src proto.Message) { + xxx_messageInfo_Library.Merge(m, src) } func (m *Library) XXX_Size() int { return xxx_messageInfo_Library.Size(m) @@ -1109,99 +1132,101 @@ func (m *Library) GetProperties() map[string]string { } func init() { - proto.RegisterType((*LibraryDownloadReq)(nil), "cc.arduino.core.rpc.LibraryDownloadReq") - proto.RegisterType((*LibraryDownloadResp)(nil), "cc.arduino.core.rpc.LibraryDownloadResp") - proto.RegisterType((*LibraryInstallReq)(nil), "cc.arduino.core.rpc.LibraryInstallReq") - proto.RegisterType((*LibraryInstallResp)(nil), "cc.arduino.core.rpc.LibraryInstallResp") - proto.RegisterType((*LibraryUninstallReq)(nil), "cc.arduino.core.rpc.LibraryUninstallReq") - proto.RegisterType((*LibraryUninstallResp)(nil), "cc.arduino.core.rpc.LibraryUninstallResp") - proto.RegisterType((*LibraryUpgradeAllReq)(nil), "cc.arduino.core.rpc.LibraryUpgradeAllReq") - proto.RegisterType((*LibraryUpgradeAllResp)(nil), "cc.arduino.core.rpc.LibraryUpgradeAllResp") - proto.RegisterType((*LibrarySearchReq)(nil), "cc.arduino.core.rpc.LibrarySearchReq") - proto.RegisterType((*LibrarySearchResp)(nil), "cc.arduino.core.rpc.LibrarySearchResp") - proto.RegisterType((*SearchedLibrary)(nil), "cc.arduino.core.rpc.SearchedLibrary") - proto.RegisterMapType((map[string]*LibraryRelease)(nil), "cc.arduino.core.rpc.SearchedLibrary.ReleasesEntry") - proto.RegisterType((*LibraryRelease)(nil), "cc.arduino.core.rpc.LibraryRelease") - proto.RegisterType((*DownloadResource)(nil), "cc.arduino.core.rpc.DownloadResource") - proto.RegisterType((*LibraryListReq)(nil), "cc.arduino.core.rpc.LibraryListReq") - proto.RegisterType((*LibraryListResp)(nil), "cc.arduino.core.rpc.LibraryListResp") - proto.RegisterType((*InstalledLibrary)(nil), "cc.arduino.core.rpc.InstalledLibrary") - proto.RegisterType((*Library)(nil), "cc.arduino.core.rpc.Library") - proto.RegisterMapType((map[string]string)(nil), "cc.arduino.core.rpc.Library.PropertiesEntry") - proto.RegisterEnum("cc.arduino.core.rpc.LibraryLayout", LibraryLayout_name, LibraryLayout_value) - proto.RegisterEnum("cc.arduino.core.rpc.LibraryLocation", LibraryLocation_name, LibraryLocation_value) -} - -func init() { proto.RegisterFile("lib.proto", fileDescriptor_lib_f7260005a615a6c1) } - -var fileDescriptor_lib_f7260005a615a6c1 = []byte{ - // 1086 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xdc, 0x57, 0xdb, 0x6f, 0xdb, 0x54, - 0x18, 0xc7, 0xe9, 0xd6, 0x24, 0x5f, 0x9a, 0x26, 0x3d, 0xed, 0x86, 0xe9, 0x36, 0x18, 0xa6, 0x93, - 0xa6, 0x89, 0x65, 0x52, 0x91, 0x26, 0x2e, 0xda, 0x43, 0xc7, 0x98, 0x84, 0x14, 0x4d, 0xc5, 0x80, - 0x40, 0x3c, 0x60, 0x4e, 0xec, 0xd3, 0xe4, 0x28, 0x8e, 0xed, 0x1d, 0x1f, 0x77, 0x0a, 0xb7, 0x77, - 0xde, 0x79, 0x44, 0x42, 0xf0, 0x2f, 0xf1, 0x0f, 0xf1, 0x9d, 0x8b, 0x1d, 0x27, 0x0d, 0x55, 0xa1, - 0x08, 0x10, 0x0f, 0xd3, 0xfc, 0xdd, 0xaf, 0xbf, 0xef, 0xa4, 0xd0, 0x8e, 0xf9, 0x68, 0x90, 0x89, - 0x54, 0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, 0x05, - 0x8f, 0x25, 0x4f, 0x8c, 0x65, 0x39, 0xf4, 0x8a, 0xeb, 0xe0, 0x46, 0xdd, 0x10, 0xec, 0x84, 0x09, - 0x05, 0x97, 0x28, 0x38, 0xa3, 0xd0, 0x20, 0xdb, 0xb8, 0x91, 0x53, 0x26, 0xc3, 0xc9, 0x28, 0x4d, - 0xa7, 0xfd, 0x8d, 0xc7, 0x07, 0x5f, 0x78, 0x63, 0x2e, 0x27, 0xc5, 0x08, 0x1b, 0x33, 0x7b, 0x60, - 0x9b, 0x54, 0xfe, 0x7f, 0x3f, 0x8c, 0xf9, 0x03, 0xec, 0xd5, 0x68, 0x53, 0xff, 0xf9, 0xf3, 0xd6, - 0xef, 0x01, 0x00, 0x00, 0xff, 0xff, 0xfd, 0xd7, 0x59, 0x53, 0x2e, 0x0d, 0x00, 0x00, + proto.RegisterEnum("cc.arduino.cli.commands.LibraryLayout", LibraryLayout_name, LibraryLayout_value) + proto.RegisterEnum("cc.arduino.cli.commands.LibraryLocation", LibraryLocation_name, LibraryLocation_value) + proto.RegisterType((*LibraryDownloadReq)(nil), "cc.arduino.cli.commands.LibraryDownloadReq") + proto.RegisterType((*LibraryDownloadResp)(nil), "cc.arduino.cli.commands.LibraryDownloadResp") + proto.RegisterType((*LibraryInstallReq)(nil), "cc.arduino.cli.commands.LibraryInstallReq") + proto.RegisterType((*LibraryInstallResp)(nil), "cc.arduino.cli.commands.LibraryInstallResp") + proto.RegisterType((*LibraryUninstallReq)(nil), "cc.arduino.cli.commands.LibraryUninstallReq") + proto.RegisterType((*LibraryUninstallResp)(nil), "cc.arduino.cli.commands.LibraryUninstallResp") + proto.RegisterType((*LibraryUpgradeAllReq)(nil), "cc.arduino.cli.commands.LibraryUpgradeAllReq") + proto.RegisterType((*LibraryUpgradeAllResp)(nil), "cc.arduino.cli.commands.LibraryUpgradeAllResp") + proto.RegisterType((*LibrarySearchReq)(nil), "cc.arduino.cli.commands.LibrarySearchReq") + proto.RegisterType((*LibrarySearchResp)(nil), "cc.arduino.cli.commands.LibrarySearchResp") + proto.RegisterType((*SearchedLibrary)(nil), "cc.arduino.cli.commands.SearchedLibrary") + proto.RegisterMapType((map[string]*LibraryRelease)(nil), "cc.arduino.cli.commands.SearchedLibrary.ReleasesEntry") + proto.RegisterType((*LibraryRelease)(nil), "cc.arduino.cli.commands.LibraryRelease") + proto.RegisterType((*DownloadResource)(nil), "cc.arduino.cli.commands.DownloadResource") + proto.RegisterType((*LibraryListReq)(nil), "cc.arduino.cli.commands.LibraryListReq") + proto.RegisterType((*LibraryListResp)(nil), "cc.arduino.cli.commands.LibraryListResp") + proto.RegisterType((*InstalledLibrary)(nil), "cc.arduino.cli.commands.InstalledLibrary") + proto.RegisterType((*Library)(nil), "cc.arduino.cli.commands.Library") + proto.RegisterMapType((map[string]string)(nil), "cc.arduino.cli.commands.Library.PropertiesEntry") +} + +func init() { proto.RegisterFile("commands/lib.proto", fileDescriptor_9feed0d29806df6c) } + +var fileDescriptor_9feed0d29806df6c = []byte{ + // 1107 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x57, 0x5f, 0x6f, 0x1b, 0x45, + 0x10, 0xe7, 0xec, 0x36, 0xb1, 0xc7, 0x75, 0xed, 0x6c, 0xd3, 0xf6, 0x48, 0x81, 0x84, 0x13, 0x08, + 0xb7, 0x28, 0x0e, 0x0a, 0x52, 0x85, 0x2a, 0x45, 0x28, 0xa8, 0x2d, 0x02, 0x45, 0x28, 0x3a, 0x28, + 0x0f, 0x80, 0x74, 0x5a, 0xdf, 0x4d, 0xec, 0x95, 0xd7, 0x77, 0xd7, 0xdd, 0xbd, 0x54, 0xe6, 0x85, + 0x3f, 0xdf, 0x80, 0x77, 0x1e, 0x78, 0x41, 0x48, 0x7c, 0x21, 0xbe, 0x0e, 0xda, 0x3f, 0x77, 0x3e, + 0x3b, 0x4d, 0x1b, 0x50, 0x04, 0x88,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 0xef, 0x41, 0xe7, 0x84, 0x53, 0x15, 0xd9, 0xfa, 0xf7, 0x5f, 0x21, 0x9b, 0xd0, 0x17, 0x18, + 0x17, 0x42, 0xb2, 0x53, 0x2c, 0xb5, 0xde, 0xbd, 0xda, 0x7a, 0x29, 0x3b, 0xde, 0x83, 0x0e, 0x4b, + 0x30, 0x1a, 0x15, 0x8c, 0x2b, 0x96, 0x5a, 0x64, 0xd9, 0xf8, 0x4a, 0xeb, 0x91, 0x6d, 0xb8, 0x23, + 0xf0, 0x04, 0x85, 0xa6, 0x4c, 0x12, 0x9d, 0x39, 0xd0, 0x20, 0xd7, 0x01, 0xe4, 0x14, 0x55, 0x3c, + 0x19, 0x65, 0xd9, 0xb4, 0xdf, 0xfc, 0x68, 0xf7, 0xab, 0x77, 0xc7, 0x4c, 0x4d, 0x8a, 0x91, 0x2e, + 0xcc, 0x9e, 0x2b, 0x54, 0xf9, 0x77, 0x37, 0xe6, 0x6c, 0x4f, 0xe4, 0xf1, 0x5e, 0x59, 0xb4, 0xd1, + 0x9a, 0xf9, 0x79, 0xf5, 0xfe, 0x9f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x56, 0xb0, 0x4f, 0x99, 0xa4, + 0x0d, 0x00, 0x00, } diff --git a/rpc/lib.proto b/rpc/commands/lib.proto similarity index 96% rename from rpc/lib.proto rename to rpc/commands/lib.proto index 83f373e5827..7226e1d27ec 100644 --- a/rpc/lib.proto +++ b/rpc/commands/lib.proto @@ -17,11 +17,11 @@ syntax = "proto3"; -package cc.arduino.core.rpc; +package cc.arduino.cli.commands; -option go_package = "github.com/arduino/arduino-cli/rpc"; +option go_package = "github.com/arduino/arduino-cli/rpc/commands"; -import "common.proto"; +import "commands/common.proto"; message LibraryDownloadReq { Instance instance = 1; diff --git a/rpc/upload.pb.go b/rpc/commands/upload.pb.go similarity index 60% rename from rpc/upload.pb.go rename to rpc/commands/upload.pb.go index 894b7beb332..47d5b983876 100644 --- a/rpc/upload.pb.go +++ b/rpc/commands/upload.pb.go @@ -1,11 +1,13 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: upload.proto +// source: commands/upload.proto -package rpc // import "github.com/arduino/arduino-cli/rpc" +package commands -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal @@ -16,7 +18,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type UploadReq struct { Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` @@ -35,16 +37,17 @@ func (m *UploadReq) Reset() { *m = UploadReq{} } func (m *UploadReq) String() string { return proto.CompactTextString(m) } func (*UploadReq) ProtoMessage() {} func (*UploadReq) Descriptor() ([]byte, []int) { - return fileDescriptor_upload_9ff06549022ccd97, []int{0} + return fileDescriptor_cd642cc079f8acdb, []int{0} } + func (m *UploadReq) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_UploadReq.Unmarshal(m, b) } func (m *UploadReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_UploadReq.Marshal(b, m, deterministic) } -func (dst *UploadReq) XXX_Merge(src proto.Message) { - xxx_messageInfo_UploadReq.Merge(dst, src) +func (m *UploadReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_UploadReq.Merge(m, src) } func (m *UploadReq) XXX_Size() int { return xxx_messageInfo_UploadReq.Size(m) @@ -116,16 +119,17 @@ func (m *UploadResp) Reset() { *m = UploadResp{} } func (m *UploadResp) String() string { return proto.CompactTextString(m) } func (*UploadResp) ProtoMessage() {} func (*UploadResp) Descriptor() ([]byte, []int) { - return fileDescriptor_upload_9ff06549022ccd97, []int{1} + return fileDescriptor_cd642cc079f8acdb, []int{1} } + func (m *UploadResp) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_UploadResp.Unmarshal(m, b) } func (m *UploadResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_UploadResp.Marshal(b, m, deterministic) } -func (dst *UploadResp) XXX_Merge(src proto.Message) { - xxx_messageInfo_UploadResp.Merge(dst, src) +func (m *UploadResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_UploadResp.Merge(m, src) } func (m *UploadResp) XXX_Size() int { return xxx_messageInfo_UploadResp.Size(m) @@ -151,30 +155,31 @@ func (m *UploadResp) GetErrStream() []byte { } func init() { - proto.RegisterType((*UploadReq)(nil), "cc.arduino.core.rpc.UploadReq") - proto.RegisterType((*UploadResp)(nil), "cc.arduino.core.rpc.UploadResp") -} - -func init() { proto.RegisterFile("upload.proto", fileDescriptor_upload_9ff06549022ccd97) } - -var fileDescriptor_upload_9ff06549022ccd97 = []byte{ - // 279 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x6c, 0x90, 0x4f, 0x4b, 0xc4, 0x30, - 0x10, 0xc5, 0xe9, 0xba, 0x76, 0xb7, 0xb3, 0x3d, 0x45, 0x90, 0x20, 0x2c, 0x4a, 0xf1, 0xe0, 0xc5, - 0x2c, 0xe8, 0xc9, 0xab, 0x07, 0x41, 0x4f, 0x52, 0xf1, 0xe2, 0xa5, 0xb4, 0xd9, 0xd4, 0x06, 0xdb, - 0x4e, 0x36, 0x4d, 0x05, 0xbf, 0xae, 0x9f, 0xc4, 0xfc, 0x69, 0x3d, 0xed, 0x29, 0x33, 0xbf, 0x37, - 0x2f, 0xc3, 0x3c, 0x48, 0x47, 0xd5, 0x62, 0xb9, 0x67, 0x4a, 0xa3, 0x41, 0x72, 0xc6, 0x39, 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, 0xa8, 0x8a, 0x7d, 0xba, 0xf7, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xce, - 0xf0, 0x30, 0x54, 0x90, 0x01, 0x00, 0x00, + proto.RegisterType((*UploadReq)(nil), "cc.arduino.cli.commands.UploadReq") + proto.RegisterType((*UploadResp)(nil), "cc.arduino.cli.commands.UploadResp") +} + +func init() { proto.RegisterFile("commands/upload.proto", fileDescriptor_cd642cc079f8acdb) } + +var fileDescriptor_cd642cc079f8acdb = []byte{ + // 291 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x90, 0x4f, 0x4b, 0xc4, 0x30, + 0x10, 0xc5, 0xe9, 0xba, 0xee, 0x9f, 0x59, 0x4f, 0x01, 0x35, 0x08, 0xe2, 0xba, 0xa7, 0x05, 0xd9, + 0x14, 0xf4, 0xec, 0xc5, 0x83, 0xa0, 0x27, 0xa9, 0x78, 0xf1, 0x52, 0xd2, 0x34, 0xb5, 0xc1, 0x36, + 0xc9, 0x26, 0xe9, 0x82, 0x5f, 0xd8, 0xcf, 0x21, 0x49, 0x1a, 0x3d, 0x79, 0xca, 0x64, 0x7e, 0xef, + 0xcd, 0x30, 0x0f, 0x4e, 0x99, 0xea, 0x7b, 0x2a, 0x6b, 0x9b, 0x0f, 0xba, 0x53, 0xb4, 0x26, 0xda, + 0x28, 0xa7, 0xd0, 0x39, 0x63, 0x84, 0x9a, 0x7a, 0x10, 0x52, 0x11, 0xd6, 0x09, 0x92, 0x54, 0x17, + 0x7f, 0x7a, 0x5f, 0x28, 0x19, 0xf5, 0x9b, 0xef, 0x0c, 0x96, 0x6f, 0x61, 0x40, 0xc1, 0xf7, 0xe8, + 0x1e, 0x16, 0x42, 0x5a, 0x47, 0x25, 0xe3, 0x38, 0x5b, 0x67, 0xdb, 0xd5, 0xed, 0x35, 0xf9, 0x67, + 0x20, 0x79, 0x1a, 0x85, 0xc5, 0xaf, 0x05, 0x21, 0x98, 0x36, 0xfb, 0x4a, 0xe2, 0xc9, 0x3a, 0xdb, + 0x2e, 0x8b, 0x50, 0xa3, 0x2b, 0x58, 0xd9, 0x4f, 0xee, 0x58, 0x5b, 0x6a, 0xea, 0x5a, 0x7c, 0x14, + 0x10, 0xc4, 0xd6, 0x0b, 0x75, 0xad, 0x37, 0x69, 0x65, 0x1c, 0x9e, 0x46, 0x93, 0xaf, 0x11, 0x86, + 0xf9, 0x81, 0x9b, 0x4a, 0x59, 0x8e, 0x8f, 0xd7, 0xd9, 0x76, 0x51, 0xa4, 0x2f, 0x3a, 0x83, 0xd9, + 0x81, 0x1b, 0xd1, 0x7c, 0xe1, 0x59, 0x00, 0xe3, 0xcf, 0xaf, 0x11, 0xbd, 0xf7, 0x96, 0x8d, 0xe8, + 0x38, 0x9e, 0xc7, 0x35, 0xb1, 0xf5, 0x28, 0x3a, 0xbe, 0x79, 0x06, 0x48, 0x77, 0x5a, 0x8d, 0x2e, + 0x01, 0xd4, 0xe0, 0x4a, 0xeb, 0x0c, 0xa7, 0x7d, 0x38, 0xf5, 0xa4, 0x58, 0xaa, 0xc1, 0xbd, 0x86, + 0x86, 0xc7, 0xdc, 0x98, 0x84, 0x27, 0x11, 0x73, 0x63, 0x22, 0x7e, 0xd8, 0xbd, 0xdf, 0x7c, 0x08, + 0xd7, 0x0e, 0x95, 0x4f, 0x23, 0x1f, 0xd3, 0x49, 0xef, 0x8e, 0x75, 0x22, 0x37, 0x9a, 0xe5, 0x29, + 0xa9, 0x6a, 0x16, 0xa2, 0xbe, 0xfb, 0x09, 0x00, 0x00, 0xff, 0xff, 0xfc, 0xf8, 0xc5, 0x33, 0xb3, + 0x01, 0x00, 0x00, } diff --git a/rpc/upload.proto b/rpc/commands/upload.proto similarity index 88% rename from rpc/upload.proto rename to rpc/commands/upload.proto index fbd30dd62de..b5e1178b332 100644 --- a/rpc/upload.proto +++ b/rpc/commands/upload.proto @@ -17,11 +17,11 @@ syntax = "proto3"; -package cc.arduino.core.rpc; +package cc.arduino.cli.commands; -option go_package = "github.com/arduino/arduino-cli/rpc"; +option go_package = "github.com/arduino/arduino-cli/rpc/commands"; -import "common.proto"; +import "commands/common.proto"; message UploadReq { Instance instance = 1; diff --git a/rpc/rpc.go b/rpc/rpc.go deleted file mode 100644 index 786a301ff1a..00000000000 --- a/rpc/rpc.go +++ /dev/null @@ -1,29 +0,0 @@ -// -// This file is part of arduino-cli. -// -// Copyright 2018 ARDUINO SA (http://www.arduino.cc/) -// -// This software is released under the GNU General Public License version 3, -// which covers the main part of arduino-cli. -// The terms of this license can be found at: -// https://www.gnu.org/licenses/gpl-3.0.en.html -// -// You can be released from the requirements of the above licenses by purchasing -// a commercial license. Buying such a license is mandatory if you want to modify or -// otherwise use the software for commercial activities involving the Arduino -// software without disclosing the source code of your own applications. To purchase -// a commercial license, send an email to license@arduino.cc. -// - -package rpc - -//go:generate protoc -I . -I .. --go_out=plugins=grpc:../../../.. board.proto -//go:generate protoc -I . -I .. --go_out=plugins=grpc:../../../.. commands.proto -//go:generate protoc -I . -I .. --go_out=plugins=grpc:../../../.. common.proto -//go:generate protoc -I . -I .. --go_out=plugins=grpc:../../../.. compile.proto -//go:generate protoc -I . -I .. --go_out=plugins=grpc:../../../.. core.proto -//go:generate protoc -I . -I .. --go_out=plugins=grpc:../../../.. lib.proto -//go:generate protoc -I . -I .. --go_out=plugins=grpc:../../../.. upload.proto - -// protoc --plugin=protoc-gen-grpc-java=path/to/protoc-gen-grpc-java --grpc-java_out=java --proto_path=. board.proto -// find . -name "*.proto" -exec protoc -I=. --java_out=java {} \; From 66e0aa4844ab71aa98c1eb9d3d9010f71f403310 Mon Sep 17 00:00:00 2001 From: Massimiliano Pippi Date: Thu, 13 Jun 2019 17:43:49 +0200 Subject: [PATCH 2/8] move commands daemon into commands folder --- cli/daemon/daemon.go | 2 +- {daemon => commands/daemon}/client/client.go | 0 {daemon => commands/daemon}/daemon.go | 0 3 files changed, 1 insertion(+), 1 deletion(-) rename {daemon => commands/daemon}/client/client.go (100%) rename {daemon => commands/daemon}/daemon.go (100%) diff --git a/cli/daemon/daemon.go b/cli/daemon/daemon.go index 60875866628..3b14b0ead65 100644 --- a/cli/daemon/daemon.go +++ b/cli/daemon/daemon.go @@ -25,7 +25,7 @@ import ( "runtime" "github.com/arduino/arduino-cli/cli" - "github.com/arduino/arduino-cli/daemon" + "github.com/arduino/arduino-cli/commands/daemon" rpc "github.com/arduino/arduino-cli/rpc/commands" "github.com/spf13/cobra" "google.golang.org/grpc" diff --git a/daemon/client/client.go b/commands/daemon/client/client.go similarity index 100% rename from daemon/client/client.go rename to commands/daemon/client/client.go diff --git a/daemon/daemon.go b/commands/daemon/daemon.go similarity index 100% rename from daemon/daemon.go rename to commands/daemon/daemon.go From c4cb19d9ac61d59c08aa2ca2d5ef793f2cad566b Mon Sep 17 00:00:00 2001 From: Massimiliano Pippi Date: Thu, 13 Jun 2019 19:15:11 +0200 Subject: [PATCH 3/8] make client a test case --- Taskfile.yml | 7 ++++- .../{client/client.go => client_test.go} | 28 +++++++++++-------- 2 files changed, 23 insertions(+), 12 deletions(-) mode change 100644 => 100755 Taskfile.yml rename commands/daemon/{client/client.go => client_test.go} (96%) diff --git a/Taskfile.yml b/Taskfile.yml old mode 100644 new mode 100755 index 424c0d8739a..7a5d87d9bee --- a/Taskfile.yml +++ b/Taskfile.yml @@ -50,6 +50,11 @@ tasks: - test -z $(go fmt ./legacy/...) - go vet ./legacy/... + rpc-client: + desc: Run the rpc client test routine (server must be already started) + cmds: + - go test -run TestWithClientE2E ./commands/daemon + vars: # all modules of this project except for "legacy/..." module DEFAULT_TARGETS: @@ -72,4 +77,4 @@ vars: -X github.com/arduino/arduino-cli/version.commit={{.TEST_COMMIT}}' # check-lint vars - GOLINTFLAGS: "-min_confidence 0.8 -set_exit_status" \ No newline at end of file + GOLINTFLAGS: "-min_confidence 0.8 -set_exit_status" diff --git a/commands/daemon/client/client.go b/commands/daemon/client_test.go similarity index 96% rename from commands/daemon/client/client.go rename to commands/daemon/client_test.go index 8f576e3852f..807a9b07b96 100644 --- a/commands/daemon/client/client.go +++ b/commands/daemon/client_test.go @@ -15,34 +15,40 @@ // a commercial license, send an email to license@arduino.cc. // -package main +package daemon_test import ( "context" "fmt" "io" + "io/ioutil" "os" + "testing" + "time" "github.com/arduino/arduino-cli/common/formatter" rpc "github.com/arduino/arduino-cli/rpc/commands" "google.golang.org/grpc" ) -func main() { - if len(os.Args) != 3 { - fmt.Println("Please specify Arduino DATA_DIR as first argument") - os.Exit(1) +func TestWithClientE2E(t *testing.T) { + if testing.Short() { + t.Skip("rpc client test must be run manually, skip...") } - datadir := os.Args[1] - fmt.Println("=== Connecting to GRPC server") - conn, err := grpc.Dial("127.0.0.1:50051", grpc.WithInsecure()) + conn, err := grpc.Dial("localhost:50051", grpc.WithInsecure(), grpc.WithBlock(), grpc.WithTimeout(100*time.Millisecond)) if err != nil { - fmt.Printf("Error connecting to server: %s\n", err) - os.Exit(1) + t.Skip("error connecting to arduino-cli rpc server, skip...") } + defer conn.Close() + + datadir, err := ioutil.TempDir("", "arduino-rpc-client") + if err != nil { + t.Fatal(err) + } + defer os.RemoveAll(datadir) + client := rpc.NewArduinoCoreClient(conn) - fmt.Println() // VERSION fmt.Println("=== calling Version") From 3866dbf1c906fbb1b7e5041ade6be4590b822b2e Mon Sep 17 00:00:00 2001 From: Massimiliano Pippi Date: Fri, 14 Jun 2019 10:25:39 +0200 Subject: [PATCH 4/8] run protoc as part of the testing pipeline --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 14d34d7f1c1..fe239f2c636 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,6 +18,7 @@ script: # Check if the code is formatted and run linter - ./bin/task check # Build and test + - ./bin/task protoc - ./bin/task build - ./bin/task test - ./bin/task test-legacy From 8a9d9956cf190a5af53cedab9abd6bf11b0ba9c9 Mon Sep 17 00:00:00 2001 From: Massimiliano Pippi Date: Fri, 14 Jun 2019 11:45:22 +0200 Subject: [PATCH 5/8] install protoc on travis --- .travis.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.travis.yml b/.travis.yml index fe239f2c636..0f6ded10b5a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,9 @@ go: env: - GO111MODULE=on +before_install: + - export PATH=$HOME/protobuf/bin:$PATH + # Anything in before_script that returns a nonzero exit code will flunk the # build and immediately stop. It's sorta like having set -e enabled in bash. # Make sure golangci-lint is vendored. @@ -13,6 +16,12 @@ install: - curl -sL https://taskfile.dev/install.sh | sh - go get github.com/golangci/govet - go get golang.org/x/lint/golint + - | + mkdir -p $HOME/protobuf && pushd $HOME/protobuf && + curl -LO 'https://github.com/google/protobuf/releases/download/v3.8.0/protoc-3.8.0-linux-x86_64.zip' && + unzip protoc-3.8.0-linux-x86_64.zip && + popd + script: # Check if the code is formatted and run linter From bcee57d61257777785e8ae6410a5e5aed7940b52 Mon Sep 17 00:00:00 2001 From: Massimiliano Pippi Date: Fri, 14 Jun 2019 12:37:21 +0200 Subject: [PATCH 6/8] put PATH in env --- .travis.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0f6ded10b5a..bff26c9fece 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,9 +5,7 @@ go: env: - GO111MODULE=on - -before_install: - - export PATH=$HOME/protobuf/bin:$PATH + - PATH=$HOME/protobuf/bin:$PATH # Anything in before_script that returns a nonzero exit code will flunk the # build and immediately stop. It's sorta like having set -e enabled in bash. @@ -22,7 +20,6 @@ install: unzip protoc-3.8.0-linux-x86_64.zip && popd - script: # Check if the code is formatted and run linter - ./bin/task check @@ -35,5 +32,3 @@ script: after_success: - bash <(curl -s https://codecov.io/bash) -cF unit -f '*_unit.txt' - bash <(curl -s https://codecov.io/bash) -cF integ -f '*_integ.txt' - - From fc4f7a886a2bc9362cbb479882d208c76f620f18 Mon Sep 17 00:00:00 2001 From: Massimiliano Pippi Date: Fri, 14 Jun 2019 12:42:42 +0200 Subject: [PATCH 7/8] dont want multiple envs --- .travis.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index bff26c9fece..fbe040aa068 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,8 +4,7 @@ go: - 1.12.x env: - - GO111MODULE=on - - PATH=$HOME/protobuf/bin:$PATH + - GO111MODULE=on PATH=$HOME/protobuf/bin:$PATH # Anything in before_script that returns a nonzero exit code will flunk the # build and immediately stop. It's sorta like having set -e enabled in bash. From 2fc26d6a63d540a404db10ab0a96f2dcf46a7283 Mon Sep 17 00:00:00 2001 From: Massimiliano Pippi Date: Fri, 14 Jun 2019 12:51:13 +0200 Subject: [PATCH 8/8] forgot a package --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index fbe040aa068..f4203269158 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,6 +13,7 @@ install: - curl -sL https://taskfile.dev/install.sh | sh - go get github.com/golangci/govet - go get golang.org/x/lint/golint + - go get -u github.com/golang/protobuf/protoc-gen-go - | mkdir -p $HOME/protobuf && pushd $HOME/protobuf && curl -LO 'https://github.com/google/protobuf/releases/download/v3.8.0/protoc-3.8.0-linux-x86_64.zip' &&