[PR #164] [MERGED] Added file flag #276

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

📋 Pull Request Information

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

Base: masterHead: Feature-File-Flag


📝 Commits (1)

📊 Changes

6 files changed (+40 additions, -39 deletions)

View changed files

📝 main.go (+24 -7)
📝 proxmox/config_acme_account.go (+3 -7)
📝 proxmox/config_acme_plugin.go (+3 -7)
📝 proxmox/config_lxc.go (+4 -4)
📝 proxmox/config_qemu.go (+3 -7)
📝 proxmox/config_user.go (+3 -7)

📄 Description

Added a file flag to specify a config file.

This feature will help with development since it is quite awkward to input the config from stdin while debugging.

The old behavior of using os.Stdin is still there and will be used when the file flag is either empty or unspecified.
All user file input is now handled by the GetConfig function.


🔄 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/164 **Author:** [@Tinyblargon](https://github.com/Tinyblargon) **Created:** 4/13/2022 **Status:** ✅ Merged **Merged:** 4/13/2022 **Merged by:** [@mleone87](https://github.com/mleone87) **Base:** `master` ← **Head:** `Feature-File-Flag` --- ### 📝 Commits (1) - [`9efe0ed`](https://github.com/Telmate/proxmox-api-go/commit/9efe0edc9e8b72d667ef5bbd5c781af461e93252) Added file flag ### 📊 Changes **6 files changed** (+40 additions, -39 deletions) <details> <summary>View changed files</summary> 📝 `main.go` (+24 -7) 📝 `proxmox/config_acme_account.go` (+3 -7) 📝 `proxmox/config_acme_plugin.go` (+3 -7) 📝 `proxmox/config_lxc.go` (+4 -4) 📝 `proxmox/config_qemu.go` (+3 -7) 📝 `proxmox/config_user.go` (+3 -7) </details> ### 📄 Description Added a file flag to specify a config file. This feature will help with development since it is quite awkward to input the config from stdin while debugging. The old behavior of using [os.Stdin](https://github.com/Tinyblargon/proxmox-api-go/blame/Feature-File-Flag/main.go#L567) is still there and will be used when the file flag is either empty or unspecified. All user file input is now handled by the [GetConfig](https://github.com/Tinyblargon/proxmox-api-go/blame/Feature-File-Flag/main.go#L560) function. --- <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:31 +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#276
No description provided.