Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit 99d9c07

Browse files
committed
handle vis formats as argument
1 parent fa6ec75 commit 99d9c07

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

shell.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,10 +677,12 @@ func (s *Shell) ObjectPut(obj *IpfsObject) (string, error) {
677677
return out.Hash, nil
678678
}
679679

680-
func (s *Shell) DiagNet() ([]byte, error) {
680+
func (s *Shell) DiagNet(format string) ([]byte, error) {
681681
var result = new(bytes.Buffer)
682682

683683
req := s.newRequest("diag/net")
684+
req.Opts["vis"] = format
685+
684686
resp, err := req.Send(s.httpcli)
685687
if err != nil {
686688
return []byte{}, err

0 commit comments

Comments
 (0)