[PR #194] [MERGED] Cli overhaul: guest commands (no tests yet) #300

Closed
opened 2026-02-28 00:41:40 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Telmate/proxmox-api-go/pull/194
Author: @Tinyblargon
Created: 9/13/2022
Status: Merged
Merged: 9/20/2022
Merged by: @mleone87

Base: masterHead: CLI-Overhaul


📝 Commits (4)

  • 09e5a30 Make code more DRY
  • e3f9884 Add Shared Guest Commands
  • b8fd039 Add qemu specific guest commands
  • 7ca9e8f Add qemu guest pause and hibernate commands

📊 Changes

14 files changed (+310 additions, -51 deletions)

View changed files

📝 cli/command/commands/commands.go (+2 -0)
cli/command/guest/guest-shutdown.go (+25 -0)
cli/command/guest/guest-start.go (+25 -0)
cli/command/guest/guest-status.go (+27 -0)
cli/command/guest/guest-stop.go (+25 -0)
cli/command/guest/guest-uptime.go (+27 -0)
cli/command/guest/guest.go (+15 -0)
cli/command/guest/qemu/guest-qemu-hibernate.go (+25 -0)
cli/command/guest/qemu/guest-qemu-pause.go (+25 -0)
cli/command/guest/qemu/guest-qemu-reset.go (+25 -0)
cli/command/guest/qemu/guest-qemu-resume.go (+25 -0)
cli/command/guest/qemu/guest-qemu.go (+15 -0)
📝 cli/print.go (+14 -10)
📝 proxmox/client.go (+35 -41)

📄 Description

Another pull for https://github.com/Telmate/proxmox-api-go/issues/171

Work so far:

  • Added the commands for starting, stopping, shutting down, retrieve the status and getting the uptime of qemu and lxc guests.
  • Added the commands for hibernating, pausing, resuming and resetting qemu guests.
  • Removed some duplicate code to make the implementation more DRY.

No tests yet for these commands as they are dependent on the CRUD operations of LXC and Qemu which haven't been implemented yet.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Telmate/proxmox-api-go/pull/194 **Author:** [@Tinyblargon](https://github.com/Tinyblargon) **Created:** 9/13/2022 **Status:** ✅ Merged **Merged:** 9/20/2022 **Merged by:** [@mleone87](https://github.com/mleone87) **Base:** `master` ← **Head:** `CLI-Overhaul` --- ### 📝 Commits (4) - [`09e5a30`](https://github.com/Telmate/proxmox-api-go/commit/09e5a3052d43e7a20998bd8945606a4a37e9dfa1) Make code more DRY - [`e3f9884`](https://github.com/Telmate/proxmox-api-go/commit/e3f9884c6dab7a4b3031bb3a37c003ebd502de0e) Add Shared Guest Commands - [`b8fd039`](https://github.com/Telmate/proxmox-api-go/commit/b8fd039107d6596a9731332c70448ead4f273257) Add qemu specific guest commands - [`7ca9e8f`](https://github.com/Telmate/proxmox-api-go/commit/7ca9e8fce3f30a7653c86b03637db9a2c3b56386) Add qemu guest pause and hibernate commands ### 📊 Changes **14 files changed** (+310 additions, -51 deletions) <details> <summary>View changed files</summary> 📝 `cli/command/commands/commands.go` (+2 -0) ➕ `cli/command/guest/guest-shutdown.go` (+25 -0) ➕ `cli/command/guest/guest-start.go` (+25 -0) ➕ `cli/command/guest/guest-status.go` (+27 -0) ➕ `cli/command/guest/guest-stop.go` (+25 -0) ➕ `cli/command/guest/guest-uptime.go` (+27 -0) ➕ `cli/command/guest/guest.go` (+15 -0) ➕ `cli/command/guest/qemu/guest-qemu-hibernate.go` (+25 -0) ➕ `cli/command/guest/qemu/guest-qemu-pause.go` (+25 -0) ➕ `cli/command/guest/qemu/guest-qemu-reset.go` (+25 -0) ➕ `cli/command/guest/qemu/guest-qemu-resume.go` (+25 -0) ➕ `cli/command/guest/qemu/guest-qemu.go` (+15 -0) 📝 `cli/print.go` (+14 -10) 📝 `proxmox/client.go` (+35 -41) </details> ### 📄 Description Another pull for https://github.com/Telmate/proxmox-api-go/issues/171 Work so far: - Added the commands for starting, stopping, shutting down, retrieve the status and getting the uptime of qemu and lxc guests. - Added the commands for hibernating, pausing, resuming and resetting qemu guests. - Removed some duplicate code to make the implementation more DRY. No tests yet for these commands as they are dependent on the CRUD operations of LXC and Qemu which haven't been implemented yet. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 00:41:40 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/proxmox-api-go#300
No description provided.