Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-cli
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Operations
Operations
Metrics
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-cli
Commits
2b8d6d76
Unverified
Commit
2b8d6d76
authored
Feb 02, 2023
by
MatteoPologruto
Committed by
GitHub
Feb 02, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove empty object from the output of grpc commands (#2057)
parent
3ac83201
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
28 deletions
+7
-28
commands/daemon/daemon.go
commands/daemon/daemon.go
+7
-28
No files found.
commands/daemon/daemon.go
View file @
2b8d6d76
...
...
@@ -159,10 +159,7 @@ func (s *ArduinoCoreServerImpl) UpdateLibrariesIndex(req *rpc.UpdateLibrariesInd
err
:=
commands
.
UpdateLibrariesIndex
(
stream
.
Context
(),
req
,
func
(
p
*
rpc
.
DownloadProgress
)
{
stream
.
Send
(
&
rpc
.
UpdateLibrariesIndexResponse
{
DownloadProgress
:
p
})
},
)
if
err
!=
nil
{
return
convertErrorToRPCStatus
(
err
)
}
return
stream
.
Send
(
&
rpc
.
UpdateLibrariesIndexResponse
{})
return
convertErrorToRPCStatus
(
err
)
}
// Create FIXMEDOC
...
...
@@ -357,10 +354,7 @@ func (s *ArduinoCoreServerImpl) LibraryInstall(req *rpc.LibraryInstallRequest, s
func
(
p
*
rpc
.
DownloadProgress
)
{
stream
.
Send
(
&
rpc
.
LibraryInstallResponse
{
Progress
:
p
})
},
func
(
p
*
rpc
.
TaskProgress
)
{
stream
.
Send
(
&
rpc
.
LibraryInstallResponse
{
TaskProgress
:
p
})
},
)
if
err
!=
nil
{
return
convertErrorToRPCStatus
(
err
)
}
return
stream
.
Send
(
&
rpc
.
LibraryInstallResponse
{})
return
convertErrorToRPCStatus
(
err
)
}
// LibraryUpgrade FIXMEDOC
...
...
@@ -370,10 +364,7 @@ func (s *ArduinoCoreServerImpl) LibraryUpgrade(req *rpc.LibraryUpgradeRequest, s
func
(
p
*
rpc
.
DownloadProgress
)
{
stream
.
Send
(
&
rpc
.
LibraryUpgradeResponse
{
Progress
:
p
})
},
func
(
p
*
rpc
.
TaskProgress
)
{
stream
.
Send
(
&
rpc
.
LibraryUpgradeResponse
{
TaskProgress
:
p
})
},
)
if
err
!=
nil
{
return
convertErrorToRPCStatus
(
err
)
}
return
stream
.
Send
(
&
rpc
.
LibraryUpgradeResponse
{})
return
convertErrorToRPCStatus
(
err
)
}
// LibraryUninstall FIXMEDOC
...
...
@@ -381,10 +372,7 @@ func (s *ArduinoCoreServerImpl) LibraryUninstall(req *rpc.LibraryUninstallReques
err
:=
lib
.
LibraryUninstall
(
stream
.
Context
(),
req
,
func
(
p
*
rpc
.
TaskProgress
)
{
stream
.
Send
(
&
rpc
.
LibraryUninstallResponse
{
TaskProgress
:
p
})
},
)
if
err
!=
nil
{
return
convertErrorToRPCStatus
(
err
)
}
return
stream
.
Send
(
&
rpc
.
LibraryUninstallResponse
{})
return
convertErrorToRPCStatus
(
err
)
}
// LibraryUpgradeAll FIXMEDOC
...
...
@@ -393,10 +381,7 @@ func (s *ArduinoCoreServerImpl) LibraryUpgradeAll(req *rpc.LibraryUpgradeAllRequ
func
(
p
*
rpc
.
DownloadProgress
)
{
stream
.
Send
(
&
rpc
.
LibraryUpgradeAllResponse
{
Progress
:
p
})
},
func
(
p
*
rpc
.
TaskProgress
)
{
stream
.
Send
(
&
rpc
.
LibraryUpgradeAllResponse
{
TaskProgress
:
p
})
},
)
if
err
!=
nil
{
return
convertErrorToRPCStatus
(
err
)
}
return
stream
.
Send
(
&
rpc
.
LibraryUpgradeAllResponse
{})
return
convertErrorToRPCStatus
(
err
)
}
// LibraryResolveDependencies FIXMEDOC
...
...
@@ -429,10 +414,7 @@ func (s *ArduinoCoreServerImpl) ZipLibraryInstall(req *rpc.ZipLibraryInstallRequ
stream
.
Context
(),
req
,
func
(
p
*
rpc
.
TaskProgress
)
{
stream
.
Send
(
&
rpc
.
ZipLibraryInstallResponse
{
TaskProgress
:
p
})
},
)
if
err
!=
nil
{
return
convertErrorToRPCStatus
(
err
)
}
return
stream
.
Send
(
&
rpc
.
ZipLibraryInstallResponse
{})
return
convertErrorToRPCStatus
(
err
)
}
// GitLibraryInstall FIXMEDOC
...
...
@@ -441,10 +423,7 @@ func (s *ArduinoCoreServerImpl) GitLibraryInstall(req *rpc.GitLibraryInstallRequ
stream
.
Context
(),
req
,
func
(
p
*
rpc
.
TaskProgress
)
{
stream
.
Send
(
&
rpc
.
GitLibraryInstallResponse
{
TaskProgress
:
p
})
},
)
if
err
!=
nil
{
return
convertErrorToRPCStatus
(
err
)
}
return
stream
.
Send
(
&
rpc
.
GitLibraryInstallResponse
{})
return
convertErrorToRPCStatus
(
err
)
}
// EnumerateMonitorPortSettings FIXMEDOC
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment