Skip to content

Conversation

Copy link

Copilot AI commented Sep 30, 2025

Summary

Enhanced the gscloud info command to display additional resource metrics beyond just object counts, providing users with more detailed information about their infrastructure at a glance.

Changes

The info command now displays:

  • Servers: Total count, CPU cores, and memory (in GiB)
  • Storages: Total count and capacity (in GiB)
  • IP addresses: Total count
  • Platform services: Total count

Before

OBJECT             COUNT
Platform services  0
Servers            18
Storages           24
IP addresses       2

After

OBJECT             COUNT  CORES  MEMORY (GiB)  CAPACITY (GiB)
Platform services  0      -      -             -
Servers            18     36     72            -
Storages           24     -      -             240
IP addresses       2      -      -             -

Implementation Details

The data (cores, memory, capacity) was already being collected by the backend API calls but wasn't being displayed in the table output. This change:

  1. Adds three new columns to the output table: CORES, MEMORY (GiB), and CAPACITY (GiB)
  2. Displays the relevant metrics for each resource type, showing "-" for non-applicable fields
  3. Updates the help text example to reflect the new output format
  4. Maintains backward compatibility - JSON output automatically includes all collected fields

The implementation is minimal and surgical, modifying only the table rendering logic without changing any data collection or JSON output behavior.

Resolves

Fixes issue requesting that gscloud info show more details about resources, specifically:

  • ✅ Project name and API location (already displayed)
  • ✅ Number of cores for servers
  • ✅ Memory for servers in GiB
  • ✅ Storage capacity in GiB
Original prompt

This section details on the original issue you should resolve

<issue_title>gscloud info could show more</issue_title>
<issue_description>Useful would be

  • project name, possibly location for the API token used
  • not only object counts of servers, storages but also no. of cores, mem, storage in GiB
    </issue_description>

Comments on the Issue (you are @copilot in this section)

Fixes #124

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] gscloud info could show more Display cores, memory, and storage capacity in gscloud info command Sep 30, 2025
Copilot AI requested a review from fabiante September 30, 2025 05:20
Copilot finished work on behalf of fabiante September 30, 2025 05:20
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.

gscloud info could show more

2 participants