Skip to content
Snippets Groups Projects

Improve usability and better output formatting for gosndc

Merged Malte Bauch requested to merge cli-refactoring-pterm into develop
4 files
+ 45
21
Compare changes
  • Side-by-side
  • Inline
Files
4
+ 1
1
@@ -119,7 +119,7 @@ func (p *PndAdapter) ChangeOND(duid uuid.UUID, operation ppb.ApiOperation, path
@@ -119,7 +119,7 @@ func (p *PndAdapter) ChangeOND(duid uuid.UUID, operation ppb.ApiOperation, path
// Request sends an API call to the controller requesting the specified path
// Request sends an API call to the controller requesting the specified path
// for the specified device
// for the specified device
func (p *PndAdapter) Request(did uuid.UUID, path string) (proto.Message, error) {
func (p *PndAdapter) Request(did uuid.UUID, path string) (*ppb.GetPathResponse, error) {
resp, err := api.GetPath(p.endpoint, p.id.String(), did.String(), path)
resp, err := api.GetPath(p.endpoint, p.id.String(), did.String(), path)
if err != nil {
if err != nil {
return nil, err
return nil, err
Loading