func (s *Shell) Version() (string, string, error) {
	ver := struct {
		Version string
		Commit  string
	}{}

	if err := s.Request("version").Exec(context.Background(), &ver); err != nil {
		return "", "", err
	}
	return ver.Version, ver.Commit, nil
}
func (s *Shell) Version() (string, string, error) {
	ver := struct {
		Version string
		Commit  string
	}{}

	if err := s.Request("version").Exec(context.Background(), &ver); err != nil {
		return "", "", err
	}
	return ver.Version, ver.Commit, nil
}
func ( s * Shell ) Version ( ) ( string , string , error ) { ver := struct { Version string Commit string } { } if err := s . Request ( " " ) . Exec ( context . Background ( ) , & ver ) ; err != nil { return " " , " " , err } return ver . Version , ver . Commit , nil }
// returns ipfs version and commit sha
returns ipfs version and commit sha