Commit Graph

17 Commits

Author SHA1 Message Date
René Jochum
2b267ba22e Add task log to 'lxc create' 2018-06-20 06:42:49 +02:00
René Jochum
b7db4587c1 Add create and destroy subcommands to the lxc command 2018-06-20 06:42:49 +02:00
Dietmar Maurer
51da150240 Helpers.pm: remove unknown format definitions
We do those checks at the server side anyways ...
2018-06-18 13:16:11 +02:00
Dietmar Maurer
5eb200482a remove $pve_api_path_hash - no longer used 2018-06-18 09:52:59 +02:00
Dietmar Maurer
520f543ef8 Helpers.pm: new helper find_method_info()
To lookup method info with extracted uri parameters.
2018-06-18 09:51:36 +02:00
Dietmar Maurer
df89fcb907 add helper to read/update a ticket cache file 2018-06-15 09:17:29 +02:00
Dietmar Maurer
0ca370283d Helpers.pm: new helper configuration_directory
Read configs from XDG_CONFIG_HOME/pveclient/ first.
if XDG_CONFIG_HOME is not set, then use $HOME/.config/pveclient/
2018-06-15 09:17:29 +02:00
Dietmar Maurer
b5aeedb062 rename defaut output format from 'table' to 'text' 2018-06-14 11:57:40 +02:00
Dietmar Maurer
4db9ff67bc add new helper print_result 2018-06-14 11:12:29 +02:00
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