Skip to content

Conversation

jaypipes
Copy link
Owner

Mostly documentation cleanups, but this commit does remove a number of deprecated fields and functions:

  • ghw.PCIInfo.Classes (deprecated for >1 year, use pcidb instead)
  • ghw.PCIInfo.Products (deprecated for >1 year, use pcidb instead)
  • ghw.PCIInfo.Vendors (deprecated for >1 year, use pcidb instead)
  • ghw.PCIInfo.ListDevices() (deprecated for >1 year, use ghw.PCIInfo.Devices)
  • ghw.pkg/pci.Address (deprecated for >1 year, just use pkg/pci/address package)
  • ghw.pkg/pci.AddressFromString() (deprecated for >1 year, just use pkg/pci/address package)

Primary documentation changes were to move the configuration options, environment-setting instructions, serialization and snapshot stuff into an "Advanced Usage" section towards the bottom of the README and focus the main "Usage" part on the domain-specific functions like CPU(), Memory() etc.

@jaypipes jaypipes requested a review from ffromani July 16, 2023 01:20
Copy link
Collaborator

@ffromani ffromani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

straightforward, thanks. I think we should explicitely list the removed fields in the relase announcement, and that wraps it up.

@ffromani
Copy link
Collaborator

it seems we need a rebase? other than that good to be merged anytime.

Mostly documentation cleanups, but this commit does remove a number of
deprecated fields and functions:

* `ghw.PCIInfo.Classes` (deprecated for >1 year, use pcidb instead)
* `ghw.PCIInfo.Products` (deprecated for >1 year, use pcidb instead)
* `ghw.PCIInfo.Vendors` (deprecated for >1 year, use pcidb instead)
* `ghw.PCIInfo.ListDevices()` (deprecated for >1 year, use
  `ghw.PCIInfo.Devices`)
* `ghw.pkg/pci.Address` (deprecated for >1 year, just use
  pkg/pci/address package)
* `ghw.pkg/pci.AddressFromString()` (deprecated for >1 year, just use
  pkg/pci/address package)

Primary documentation changes were to move the configuration options,
environment-setting instructions, serialization and snapshot stuff into
an "Advanced Usage" section towards the bottom of the README and focus
the main "Usage" part on the domain-specific functions like `CPU()`,
`Memory()` etc.

Signed-off-by: Jay Pipes <jaypipes@gmail.com>
@jaypipes
Copy link
Owner Author

sorry about that @ffromani. Rebased and repushed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants