Commit Graph

449 Commits

Author SHA1 Message Date
Dietmar Maurer
18b53d0fa6 fix typo in doc comment 2020-02-28 10:10:35 +01:00
Dietmar Maurer
ccc4d2ddd4 bump rust-proxmox version 0.1.17-1 2020-02-28 10:08:24 +01:00
Dietmar Maurer
9d9ab22128 text_table.rs: fix max column width when displaying without header 2020-02-28 10:05:59 +01:00
Dietmar Maurer
a5083b9028 text_table.rs: add table padding 2020-02-28 09:45:31 +01:00
Dietmar Maurer
c1eeaf7612 text_table.rs: fix column seperator for ascii tables 2020-02-28 09:29:04 +01:00
Wolfgang Bumiller
ece152d42c bump proxmox to 0.1.16
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-02-27 13:12:28 +01:00
Wolfgang Bumiller
d7be7df86c bump proxmox-api-macro to 0.1.4
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-02-27 13:10:40 +01:00
Wolfgang Bumiller
dd8ccd80d9 api-macro: make API_{RETURN,PARAMETER}_SCHEMA_... public
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-02-27 13:08:59 +01:00
Dietmar Maurer
739b3e2721 bump rust-proxmox version to 0.1.15-1 2020-02-27 12:36:57 +01:00
Dietmar Maurer
a21fd499f6 proxmox/src/api/cli/text_table.rs: new helpers to read output format from environment 2020-02-27 12:34:46 +01:00
Dietmar Maurer
e3c1104ed3 bump rust-proxmox version to 0.1.14-1 2020-02-27 11:17:38 +01:00
Dietmar Maurer
875f00bb85 proxmox/src/api/cli/text_table.rs - format_object: use column_config header
Also right_align Value column if all properthies are right_aligned.
2020-02-27 11:10:02 +01:00
Dietmar Maurer
43fd868a6d proxmox/src/api/cli/text_table.rs: implement sort by multiple columns
Also implement sort order flag and column header property.
2020-02-27 10:01:30 +01:00
Dietmar Maurer
f62fe221f0 src/api/schema.rs - verify_json_object: improve error message 2020-01-31 09:00:51 +01:00
Dietmar Maurer
c4311d4f11 bump librust-proxmox version to 0.1.13-1 2020-01-31 08:04:30 +01:00
Dietmar Maurer
afa61fafb0 src/api/cli/text_table.rs: use new sys::linux::tty::stdout_terminal_size 2020-01-31 08:02:06 +01:00
Dietmar Maurer
4d21db36fe src/sys/linux/tty.rs: add tty helpers 2020-01-31 07:58:48 +01:00
Christian Ebner
98708e346d fix typos in doc comments.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
2020-01-31 07:03:33 +01:00
Dietmar Maurer
db316a1fd8 bump rust-proxmox version to 0.1.12-1 2020-01-31 06:53:33 +01:00
Dietmar Maurer
af7d6cd045 src/api/cli/text_table.rs: only call TIOCGWINSZ on terminals 2020-01-30 18:25:43 +01:00
Dietmar Maurer
9976f04357 src/api/cli/text_table.rs - TableFormatOptions: allow to add single column configs 2020-01-30 18:18:26 +01:00
Wolfgang Bumiller
f7019c4231 bump version to 0.1.11
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-01-30 12:46:28 +01:00
Wolfgang Bumiller
468bc44c68 proxmox: bump api-macro version dependency
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-01-30 12:45:51 +01:00
Wolfgang Bumiller
39566afb15 formatting fixup
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-01-30 12:37:26 +01:00
Wolfgang Bumiller
db741bfb81 bump api-macro to 0.1.3
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-01-30 12:35:28 +01:00
Wolfgang Bumiller
eadffcfc16 expose parameter schema as API_PARAMETER_SCHEMA_<methodname>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-01-30 12:32:22 +01:00
Wolfgang Bumiller
2c7b786cef expose return schema as API_RETURN_SCHEMA_<methodname>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-01-30 12:28:19 +01:00
Dietmar Maurer
9a281f6150 bump rust-proxmox version to 0.1.10-1 2020-01-30 11:47:06 +01:00
Dietmar Maurer
ce53818e5d proxmox/src/api/cli/text_table.rs: new table formatter 2020-01-30 11:43:33 +01:00
Dietmar Maurer
590305368d rust-proxmox: bump version to 0.1.9-1 2020-01-27 18:07:46 +01:00
Dietmar Maurer
f50a627f34 api/cli/command.rs: implement both sync and async versions. 2020-01-27 18:01:16 +01:00
Dietmar Maurer
e8560b67f2 src/api/cli/command.rs - handle_nested_command: fix help output 2020-01-27 11:09:14 +01:00
Thomas Lamprecht
a14c7b170f fix denglisch: s/rest/remaining/
"rest" as word means "to relax" in english, not the "remaining
stuff", so swap rest out with remaining/remainder, respectively.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-01-23 13:56:34 +01:00
Wolfgang Bumiller
0f01c52013 bump proxmox to 0.1.8 to depend on api macro 0.1.2
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-01-23 13:17:56 +01:00
Wolfgang Bumiller
a5373a9679 bump api-macro
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-01-23 13:16:50 +01:00
Wolfgang Bumiller
edebbf920a fix property sorting
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-01-23 13:15:59 +01:00
Wolfgang Bumiller
d07286c7a3 sys: doc update
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-01-22 08:56:51 +01:00
Wolfgang Bumiller
fe5ab619fb sys: hide io_assert macro for now
too risky since errno-changing calls before it can ruin the
result

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-01-22 08:54:54 +01:00
Wolfgang Bumiller
3312a7ad1b build fixups
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-01-21 12:30:13 +01:00
Wolfgang Bumiller
b6c670b2db remove valgrind feature for now and bump to 0.1.7
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-01-21 12:24:23 +01:00
Wolfgang Bumiller
74911020cf Merge remote-tracking branch 'proxdev/master' 2020-01-21 12:20:36 +01:00
Wolfgang Bumiller
436bf05e0b merge api, sys and tools into proxmox directly
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-01-21 12:15:42 +01:00
Wolfgang Bumiller
93cf522dd8 Add make dinstall target
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-01-21 11:29:39 +01:00
Wolfgang Bumiller
ccc6924e6a formatting fixup
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-01-21 11:28:12 +01:00
Dietmar Maurer
89a1cac269 bump proxmox-api version 2020-01-21 11:18:58 +01:00
Dietmar Maurer
26d5d3e680 src/cli/command.rs: avoid creating a tokio runtime by making run_cli_command async 2020-01-21 10:46:41 +01:00
Wolfgang Bumiller
2ef0e795a7 sys: double-parse fixup
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-01-17 13:32:21 +01:00
Wolfgang Bumiller
df5eb296cc sys: mountinfo parsing fixups
* include the failing line on errors
* don't fail on the final empty line...

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-01-17 13:30:28 +01:00
Wolfgang Bumiller
3d9fdb5634 bump sys crate
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-01-16 11:36:41 +01:00
Wolfgang Bumiller
eeb8e7f839 sys: read_for_pid -> read_from_pid, drop deprecated functions
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-01-16 11:33:42 +01:00