8000 GitHub - canonical/lscompute: Get info about your compute hardware · GitHub
[go: up one dir, main page]

Skip to content
canonicalPublic

About

Get info about your compute hardware

Resources

Contributing

Stars

6 stars

Watchers

2 watching

Forks

Latest commit

 

History

262 Commits

Folders and files

Repository files navigation

lscompute

Install

sudo snap install lscompute
sudo snap connect lscompute:hardware-observe # TODO: auto connect

To build and install from source, refer to here.

Usage

By default lscompute prints a human-readable (plain) summary:

lscompute

Use the --format flag to change the output serialization format. Supported formats are plain (default) and json:

lscompute --format=json

Development

Run tests

go test -count 1 -failfast ./...

Compile and run

go run ./cmd/lscompute

Build binaries

go build ./cmd/lscompute

For cross-compilation, set the GOOS and GOARCH environment variables. For example, to build for ARM64 architecture on Linux:

GOOS=linux GOARCH=arm64 go build -o lscompute-arm64 ./cmd/lscompute

Build snap

snapcraft -v

Then install the snap and connect the required interfaces:

sudo snap install --dangerous *.snap
sudo snap connect lscompute:hardware-observe 

About

Get info about your compute hardware

Resources

Contributing

Stars

6 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages

0