Git Product home page Git Product logo

Comments (6)

R4v3nl0 avatar R4v3nl0 commented on May 25, 2024

Same on windows 11.

from ghw.

ffromani avatar ffromani commented on May 25, 2024

Hi @fangdichan this is unfortunately not a bug but an implementation gap. We would need contribution to enable the PCI device lookup on windows, because none of active contributors is a windows user.

from ghw.

allberson avatar allberson commented on May 25, 2024

@fromanirh is there some prevision on when this functionality will be available? Is there a way to run ghw on windows whithout the implementation of pciFillInfo?

from ghw.

ffromani avatar ffromani commented on May 25, 2024

@fromanirh is there some prevision on when this functionality will be available? Is there a way to run ghw on windows whithout the implementation of pciFillInfo?

AFAIK noone is working on this, but we'll gladly accept patches (cc @jaypipes ). You can totally use parts of ghw on windows, for some of them there is already support on windows, and what's supported will be kept.

from ghw.

allberson avatar allberson commented on May 25, 2024

@fromanirh sorry for the inconvenience, but how to I compile (make) ghw without specific modules, like pciFillInfo?

from ghw.

ffromani avatar ffromani commented on May 25, 2024

@fromanirh sorry for the inconvenience, but how to I compile (make) ghw without specific modules, like pciFillInfo?

no problem at all :)
if you import the ghw packages in your project, you can just import the packages you need [1]
If you need to use the ghwc tool - https://github.com/jaypipes/ghw/tree/main/cmd/ghwc you can't compile out packages yet, but you can use some of the subcommands, for example cpu and they should work on windows.
Unfortunately I don't have a list handy of what works on windows, being myself a linux user.[2]

+++

[1] 
import (
	"github.com/jaypipes/ghw/pkg/cpu"
	"github.com/jaypipes/ghw/pkg/option"
)

[2]
$ go run cmd/ghwc/main.go  help

          __
 .-----. |  |--. .--.--.--.
 |  _  | |     | |  |  |  |
 |___  | |__|__| |________|
 |_____|

Discover hardware information.

https://github.com/jaypipes/ghw

Usage:
  ghwc [flags]
  ghwc [command]

Available Commands:
  baseboard   Show baseboard information for the host system
  bios        Show BIOS information for the host system
  block       Show block storage information for the host system
  chassis     Show chassis information for the host system
  cpu         Show CPU information for the host system
  gpu         Show graphics/GPU information for the host system
  help        Help about any command
  memory      Show memory information for the host system
  net         Show network information for the host system
  pci         Show information about PCI devices on the host system
  product     Show product information for the host system
  topology    Show topology information for the host system
  version     Display the version of gofile

Flags:
      --debug           Enable or disable debug mode
  -f, --format string   Output format.
                        Choices are 'json','yaml', and 'human'. (default "human")
  -h, --help            help for ghwc
      --pretty          When outputting JSON, use indentation

Use "ghwc [command] --help" for more information about a command.

from ghw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.