[PR #106] [MERGED] Fix Zero Subcommands and Errors not Reporting #233

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

📋 Pull Request Information

Original PR: https://github.com/Telmate/proxmox-api-go/pull/106
Author: @alistairjordan
Created: 3/10/2021
Status: Merged
Merged: 3/11/2021
Merged by: @ggongaware

Base: masterHead: fix_zero_subcommands_bug


📝 Commits (3)

  • 50a76d2 fix zero subcommand bug
  • 623c382 Fix errors not being passed properly
  • 2a0bd56 Removed Erroneous Println

📊 Changes

1 file changed (+12 additions, -7 deletions)

View changed files

📝 main.go (+12 -7)

📄 Description

Made a few changes to main.go to allow:

  • Stop crash occuring when flag is used but no subcommand
  • Provide error reporting for several subcommands.

🔄 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/106 **Author:** [@alistairjordan](https://github.com/alistairjordan) **Created:** 3/10/2021 **Status:** ✅ Merged **Merged:** 3/11/2021 **Merged by:** [@ggongaware](https://github.com/ggongaware) **Base:** `master` ← **Head:** `fix_zero_subcommands_bug` --- ### 📝 Commits (3) - [`50a76d2`](https://github.com/Telmate/proxmox-api-go/commit/50a76d287c2b38e25b4b6f675b35c5d54d8a5a0f) fix zero subcommand bug - [`623c382`](https://github.com/Telmate/proxmox-api-go/commit/623c38261383695660386bd4556bb913c5d73e76) Fix errors not being passed properly - [`2a0bd56`](https://github.com/Telmate/proxmox-api-go/commit/2a0bd56cc3843a940e5d95f1c1909ba68db9746a) Removed Erroneous Println ### 📊 Changes **1 file changed** (+12 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `main.go` (+12 -7) </details> ### 📄 Description Made a few changes to main.go to allow: * Stop crash occuring when flag is used but no subcommand * Provide error reporting for several subcommands. --- <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:19 +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#233
No description provided.