Commit Graph

8 Commits

Author SHA1 Message Date
Dietmar Maurer
61ad3df5bc fully implement api get/set/create/delete 2018-06-14 10:18:10 +02:00
René Jochum
ca3269f4d8 Add update-pve-common make target to move code to PVE/APIClient. 2018-06-13 13:20:53 +02:00
René Jochum
2f964a751c Add start command
I've added the logic to poll the task given by status/start until its
"stopped", this enables an usage like:

pveclient lxc create 999 && pveclient start 999 && pveclient enter 999

Signed-off-by: René Jochum <r.jochum@proxmox.com>
2018-06-13 08:39:51 +02:00
Dietmar Maurer
b133a90512 cleanup: use nested CLIHandler command definitions 2018-06-13 08:08:16 +02:00
Dietmar Maurer
ab79ce7802 use binary format to store API definition efficently
Note: The previous file does not contains indexed parameters like -net\d+ (those
were converted to to -net[n]). But we need all those parameters for the command
line completion. The binary format is much smaller the json, because it can handle
references.
2018-06-12 11:17:45 +02:00
Dietmar Maurer
635c05119a add more helper for bash completion 2018-06-12 06:45:10 +02:00
Dietmar Maurer
a04fd959f6 use get_options from PVE::JSONSchema 2018-05-23 10:57:34 +02:00
Dietmar Maurer
29505e2cb1 add client skeleton 2018-05-22 14:03:28 +02:00