[GH-ISSUE #131] Dynamically build list of available functions #25

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

Originally created by @pgporada on GitHub (Jul 23, 2021).
Original GitHub issue: https://github.com/Telmate/proxmox-api-go/issues/131

Currently, the way to use this code appears to be having two terminals open. One session with the API client and another session looking at the case statements in main.go to see a list of available functions. This feels obtuse.

It would be nice to have the following or something like it

$ ./proxmox-api-go -h
Usage of ./proxmox-api-go:
  -function_list

$ ./proxmox-api-go -function_list
createQemuSnapshot
listQemuSnapshot
rollbackQemu
sshforward
sshbackward
...
Originally created by @pgporada on GitHub (Jul 23, 2021). Original GitHub issue: https://github.com/Telmate/proxmox-api-go/issues/131 Currently, the way to use this code appears to be having two terminals open. One session with the API client and another session looking at the case statements in `main.go` to see a list of available functions. This feels obtuse. It would be nice to have the following or something like it ``` $ ./proxmox-api-go -h Usage of ./proxmox-api-go: -function_list $ ./proxmox-api-go -function_list createQemuSnapshot listQemuSnapshot rollbackQemu sshforward sshbackward ... ```
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#25
No description provided.