]> git.proxmox.com Git - proxmox.git/log
proxmox.git
4 years agoRevert "proxmox: add SysError::is_errno_raw"
Wolfgang Bumiller [Thu, 23 Apr 2020 10:43:29 +0000 (12:43 +0200)]
Revert "proxmox: add SysError::is_errno_raw"

Not actually required, the numbers just overlapped and are
therefore no separate enum entry.

This reverts commit 8f57f29ca84dbfdb99a822fdfbba43b361577a81.

4 years agoproxmox: add SysError::is_errno_raw
Wolfgang Bumiller [Thu, 23 Apr 2020 09:40:53 +0000 (11:40 +0200)]
proxmox: add SysError::is_errno_raw

to work around missing errno values in nix 0.16

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agofixup last commit
Wolfgang Bumiller [Thu, 23 Apr 2020 09:09:46 +0000 (11:09 +0200)]
fixup last commit

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoproxmox: tools: add RawFdNum helper
Wolfgang Bumiller [Thu, 23 Apr 2020 09:06:35 +0000 (11:06 +0200)]
proxmox: tools: add RawFdNum helper

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoapi/cli/completion.rs: implement completion for lists of strings
Dietmar Maurer [Thu, 23 Apr 2020 08:58:16 +0000 (10:58 +0200)]
api/cli/completion.rs: implement completion for lists of strings

4 years agoIP_REGEX - match whole string
Dietmar Maurer [Sun, 19 Apr 2020 05:55:40 +0000 (07:55 +0200)]
IP_REGEX - match whole string

4 years agobump proxmox crate to 0.1.22-1
Wolfgang Bumiller [Fri, 17 Apr 2020 16:38:06 +0000 (18:38 +0200)]
bump proxmox crate to 0.1.22-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agobump proxmox-api-macro to 0.1.7-1
Wolfgang Bumiller [Fri, 17 Apr 2020 16:37:55 +0000 (18:37 +0200)]
bump proxmox-api-macro to 0.1.7-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agobump proxmox-sortable-macro to 0.1.1
Wolfgang Bumiller [Fri, 17 Apr 2020 16:37:46 +0000 (18:37 +0200)]
bump proxmox-sortable-macro to 0.1.1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoswitch from failure to anyhow
Wolfgang Bumiller [Fri, 17 Apr 2020 16:34:10 +0000 (18:34 +0200)]
switch from failure to anyhow

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoproxmox-api-macro/src/api/method.rs: fix error message
Dietmar Maurer [Fri, 17 Apr 2020 13:28:49 +0000 (15:28 +0200)]
proxmox-api-macro/src/api/method.rs: fix error message

4 years agoapi-macro: add test for access w/o a description
Wolfgang Bumiller [Thu, 16 Apr 2020 07:15:08 +0000 (09:15 +0200)]
api-macro: add test for access w/o a description

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoapi-macro: avoid duplicate output code
Wolfgang Bumiller [Thu, 16 Apr 2020 07:12:44 +0000 (09:12 +0200)]
api-macro: avoid duplicate output code

While this is a tiny piece of code, having only one output
code consisting of prepared parts is nicer to keep up to
date.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoapi-macro: cleanup & test fixup
Wolfgang Bumiller [Thu, 16 Apr 2020 07:07:10 +0000 (09:07 +0200)]
api-macro: cleanup & test fixup

remove unnecessary types, they were already in the struct
update test to use Option for access description

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agobump rust-proxmox-api-macro version to 0.1.6-1
Dietmar Maurer [Thu, 16 Apr 2020 06:32:10 +0000 (08:32 +0200)]
bump rust-proxmox-api-macro version to 0.1.6-1

4 years agobump rust-proxmox version to 0.1.21-1
Dietmar Maurer [Thu, 16 Apr 2020 06:31:30 +0000 (08:31 +0200)]
bump rust-proxmox version to 0.1.21-1

4 years agoproxmox-api-macro/tests/api1.rs: fix test case
Dietmar Maurer [Thu, 16 Apr 2020 06:41:22 +0000 (08:41 +0200)]
proxmox-api-macro/tests/api1.rs: fix test case

4 years agoproxmox/src/api/permission.rs: pass parameters as HashMap
Dietmar Maurer [Thu, 16 Apr 2020 06:07:03 +0000 (08:07 +0200)]
proxmox/src/api/permission.rs: pass parameters as HashMap

- to make it suitable for our rest server...
- also avoid repeated is_superuser() checks
- fix privilege test (add check for 0)

4 years agomake access description optional
Dietmar Maurer [Thu, 16 Apr 2020 05:20:29 +0000 (07:20 +0200)]
make access description optional

4 years agoapi macro: support reload_timezone
Dietmar Maurer [Wed, 15 Apr 2020 15:26:43 +0000 (17:26 +0200)]
api macro: support reload_timezone

4 years agolist_subdirs_api_method: allow access for Anybody
Dietmar Maurer [Wed, 15 Apr 2020 07:23:33 +0000 (09:23 +0200)]
list_subdirs_api_method: allow access for Anybody

4 years agostyle cleanup
Wolfgang Bumiller [Wed, 15 Apr 2020 07:21:04 +0000 (09:21 +0200)]
style cleanup

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agorename some permission/access items
Wolfgang Bumiller [Wed, 15 Apr 2020 07:19:24 +0000 (09:19 +0200)]
rename some permission/access items

router.permissions(...) -> router.access(...)
    to be more consistent with the other builder methods and
    struct member names

ApiAccessPermissions -> ApiAccess
    shorter, not necessarily with defined permissions, and
    gets rid of a singular/plural confusion

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoapi-macro: support 'access' specification for methods
Wolfgang Bumiller [Tue, 14 Apr 2020 11:28:16 +0000 (13:28 +0200)]
api-macro: support 'access' specification for methods

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoapi-macro: error on unexpected keys
Wolfgang Bumiller [Tue, 14 Apr 2020 11:29:43 +0000 (13:29 +0200)]
api-macro: error on unexpected keys

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoapi-macro: util: add join and join_debug helper
Wolfgang Bumiller [Tue, 14 Apr 2020 11:25:52 +0000 (13:25 +0200)]
api-macro: util: add join and join_debug helper

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoapi-macro: minor cleanup
Wolfgang Bumiller [Tue, 14 Apr 2020 09:45:50 +0000 (11:45 +0200)]
api-macro: minor cleanup

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoapi/permissions: support test-harness
Wolfgang Bumiller [Tue, 14 Apr 2020 09:25:18 +0000 (11:25 +0200)]
api/permissions: support test-harness

(Api-macro tests want to use `==` to compare generated
schemas against hardcoded schemas.)

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoapi/permissions: cleanup & formatting
Wolfgang Bumiller [Tue, 14 Apr 2020 08:55:20 +0000 (10:55 +0200)]
api/permissions: cleanup & formatting

Use the `write!` macro as a shortcut for
   f.write_fmt(format_args!(...))

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoflatten use hierarchy for api::Permissions
Dietmar Maurer [Fri, 10 Apr 2020 13:43:49 +0000 (15:43 +0200)]
flatten use hierarchy for api::Permissions

4 years agoimplement access permission system
Dietmar Maurer [Fri, 10 Apr 2020 09:24:24 +0000 (11:24 +0200)]
implement access permission system

4 years agobump proxmox crate to 0.1.20-1
Dietmar Maurer [Wed, 25 Mar 2020 09:56:46 +0000 (10:56 +0100)]
bump proxmox crate to 0.1.20-1

4 years agoimprove command line completion with optional argument parameters
Dietmar Maurer [Wed, 25 Mar 2020 09:37:22 +0000 (10:37 +0100)]
improve command line completion with optional argument parameters

4 years agoapi-macro: started with some more documentation
Wolfgang Bumiller [Mon, 23 Mar 2020 14:55:18 +0000 (15:55 +0100)]
api-macro: started with some more documentation

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoapi-macro: add consts for defaults
Wolfgang Bumiller [Mon, 23 Mar 2020 08:06:43 +0000 (09:06 +0100)]
api-macro: add consts for defaults

Not sure how we want to actually handle default values yet.
For now we need to figure out what "feels best".
This adds default values as publicly available consts so
they can be accessed from anywhere as
`API_METHOD_<METHOD_NAME>_PARAM_DEFAULT_<PARAM_NAME>`.
This is quite a handful to type, but I'm not sure how to
make this better.

Within the function body we also have the
`api_get_default!(param_name)` macro which is more
convenient, but not available outside the `#[api]` tagged
function.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoapi-macro: explicitly enable syn's visit-mut feature
Fabian Grünbichler [Mon, 23 Mar 2020 07:04:23 +0000 (08:04 +0100)]
api-macro: explicitly enable syn's visit-mut feature

otherwise the build fails because the module is not visible

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
4 years agoapi-macro: add api_get_default!() macro
Wolfgang Bumiller [Thu, 19 Mar 2020 14:49:34 +0000 (15:49 +0100)]
api-macro: add api_get_default!() macro

When writing an #[api] function, one can now access default
values by parameter name (see test_default_option in
tests/options.rs):

    #[api(...)]
    pub fn func(value: Option<isize>) {
        println!(
            "value: {}",
            value.unwrap_or(api_get_default!("value")),
        );
    }

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoapi-macro: tests for optional non-Option parameters
Wolfgang Bumiller [Thu, 19 Mar 2020 11:08:38 +0000 (12:08 +0100)]
api-macro: tests for optional non-Option parameters

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoapi-macro: allow optional types without Option<T>
Wolfgang Bumiller [Thu, 19 Mar 2020 11:08:10 +0000 (12:08 +0100)]
api-macro: allow optional types without Option<T>

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agobump proxmox crate to 0.1.19-1
Wolfgang Bumiller [Thu, 19 Mar 2020 09:00:50 +0000 (10:00 +0100)]
bump proxmox crate to 0.1.19-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agobump api-macro to 0.1.5
Wolfgang Bumiller [Thu, 19 Mar 2020 08:56:45 +0000 (09:56 +0100)]
bump api-macro to 0.1.5

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agomake cli format a bit saner
Dominik Csapak [Wed, 18 Mar 2020 15:27:38 +0000 (16:27 +0100)]
make cli format a bit saner

this looks more like pve/pmg cli tools now
without double the empty lines

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agobuildsys: drop format check in check target
Wolfgang Bumiller [Mon, 16 Mar 2020 11:21:14 +0000 (12:21 +0100)]
buildsys: drop format check in check target

rename 'checkfmt' target to 'fmt'
there's no "apply formatting" target anymore now, this has
to be done manually to not do this by accident

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoapi-macro: cleanup: warnings
Wolfgang Bumiller [Fri, 6 Mar 2020 12:50:39 +0000 (13:50 +0100)]
api-macro: cleanup: warnings

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoapi-macro: cleanup: don't use try_fold for a Vec
Wolfgang Bumiller [Fri, 6 Mar 2020 12:37:59 +0000 (13:37 +0100)]
api-macro: cleanup: don't use try_fold for a Vec

`collect()` uses `FromIterator` which is also implemented
for `Result<Vec, Err>` from `Result<Item, Err>` doing the
same thing.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoapi-macro: add integer limit test cases
Wolfgang Bumiller [Fri, 6 Mar 2020 11:01:32 +0000 (12:01 +0100)]
api-macro: add integer limit test cases

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoapi-macro: include default minimum/maximum for integer types
Wolfgang Bumiller [Fri, 6 Mar 2020 10:57:15 +0000 (11:57 +0100)]
api-macro: include default minimum/maximum for integer types

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoapi-macro: replace unreachable with a panic
Wolfgang Bumiller [Fri, 6 Mar 2020 10:56:42 +0000 (11:56 +0100)]
api-macro: replace unreachable with a panic

(we're not running into this, but ran into an unreachable in
`syn` during development, and I needed to make sure it's not
one of ours...)

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoapi-macro: correctly infer newtype types
Wolfgang Bumiller [Fri, 6 Mar 2020 10:10:22 +0000 (11:10 +0100)]
api-macro: correctly infer newtype types

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoapi-macro: factor handle_struct differently
Wolfgang Bumiller [Fri, 6 Mar 2020 09:53:59 +0000 (10:53 +0100)]
api-macro: factor handle_struct differently

Don't assume an empty object schema for all cases as
newtypes shouldn't use an object schema at all actually!

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agobuild: add -upload target
Fabian Grünbichler [Tue, 3 Mar 2020 10:50:28 +0000 (11:50 +0100)]
build: add -upload target

requires 'dcmd' from devscripts to extract binary package file names
from .changes file

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
4 years agoRevert "add proxmox/src/sys/linux/fs.rs"
Dietmar Maurer [Mon, 2 Mar 2020 13:07:35 +0000 (14:07 +0100)]
Revert "add proxmox/src/sys/linux/fs.rs"

This reverts the previous commit 21b9321cf81409cb07ef332076f54dc4f32141ce.

Turn out we only need this for pxar, so this will get moved into the pxar crate.

4 years agoadd proxmox/src/sys/linux/fs.rs
Dietmar Maurer [Mon, 2 Mar 2020 12:59:39 +0000 (13:59 +0100)]
add proxmox/src/sys/linux/fs.rs

4 years agobump rust-proxmox version 0.1.18-1
Dietmar Maurer [Mon, 2 Mar 2020 11:48:31 +0000 (12:48 +0100)]
bump rust-proxmox version 0.1.18-1

4 years agosrc/api/section_config.rs: moved SectionConfig from proxmox-backup
Dietmar Maurer [Mon, 2 Mar 2020 09:56:40 +0000 (10:56 +0100)]
src/api/section_config.rs: moved SectionConfig from proxmox-backup

4 years agofix typo in doc comment
Dietmar Maurer [Fri, 28 Feb 2020 09:10:35 +0000 (10:10 +0100)]
fix typo in doc comment

4 years agobump rust-proxmox version 0.1.17-1
Dietmar Maurer [Fri, 28 Feb 2020 09:08:24 +0000 (10:08 +0100)]
bump rust-proxmox version 0.1.17-1

4 years agotext_table.rs: fix max column width when displaying without header
Dietmar Maurer [Fri, 28 Feb 2020 09:05:59 +0000 (10:05 +0100)]
text_table.rs: fix max column width when displaying without header

4 years agotext_table.rs: add table padding
Dietmar Maurer [Fri, 28 Feb 2020 08:45:31 +0000 (09:45 +0100)]
text_table.rs: add table padding

4 years agotext_table.rs: fix column seperator for ascii tables
Dietmar Maurer [Fri, 28 Feb 2020 08:29:04 +0000 (09:29 +0100)]
text_table.rs: fix column seperator for ascii tables

4 years agobump proxmox to 0.1.16
Wolfgang Bumiller [Thu, 27 Feb 2020 12:12:28 +0000 (13:12 +0100)]
bump proxmox to 0.1.16

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agobump proxmox-api-macro to 0.1.4
Wolfgang Bumiller [Thu, 27 Feb 2020 12:10:40 +0000 (13:10 +0100)]
bump proxmox-api-macro to 0.1.4

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoapi-macro: make API_{RETURN,PARAMETER}_SCHEMA_... public
Wolfgang Bumiller [Thu, 27 Feb 2020 12:08:59 +0000 (13:08 +0100)]
api-macro: make API_{RETURN,PARAMETER}_SCHEMA_...  public

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agobump rust-proxmox version to 0.1.15-1
Dietmar Maurer [Thu, 27 Feb 2020 11:36:57 +0000 (12:36 +0100)]
bump rust-proxmox version to 0.1.15-1

4 years agoproxmox/src/api/cli/text_table.rs: new helpers to read output format from environment
Dietmar Maurer [Thu, 27 Feb 2020 11:34:46 +0000 (12:34 +0100)]
proxmox/src/api/cli/text_table.rs: new helpers to read output format from environment

4 years agobump rust-proxmox version to 0.1.14-1
Dietmar Maurer [Thu, 27 Feb 2020 10:17:38 +0000 (11:17 +0100)]
bump rust-proxmox version to 0.1.14-1

4 years agoproxmox/src/api/cli/text_table.rs - format_object: use column_config header
Dietmar Maurer [Thu, 27 Feb 2020 10:10:02 +0000 (11:10 +0100)]
proxmox/src/api/cli/text_table.rs - format_object: use column_config header

Also right_align Value column if all properthies are right_aligned.

4 years agoproxmox/src/api/cli/text_table.rs: implement sort by multiple columns
Dietmar Maurer [Thu, 27 Feb 2020 09:01:30 +0000 (10:01 +0100)]
proxmox/src/api/cli/text_table.rs: implement sort by multiple columns

Also implement sort order flag and column header property.

4 years agosrc/api/schema.rs - verify_json_object: improve error message
Dietmar Maurer [Fri, 31 Jan 2020 08:00:51 +0000 (09:00 +0100)]
src/api/schema.rs - verify_json_object: improve error message

4 years agobump librust-proxmox version to 0.1.13-1
Dietmar Maurer [Fri, 31 Jan 2020 07:04:07 +0000 (08:04 +0100)]
bump librust-proxmox version to 0.1.13-1

4 years agosrc/api/cli/text_table.rs: use new sys::linux::tty::stdout_terminal_size
Dietmar Maurer [Fri, 31 Jan 2020 07:02:06 +0000 (08:02 +0100)]
src/api/cli/text_table.rs: use new sys::linux::tty::stdout_terminal_size

4 years agosrc/sys/linux/tty.rs: add tty helpers
Dietmar Maurer [Fri, 31 Jan 2020 06:58:48 +0000 (07:58 +0100)]
src/sys/linux/tty.rs: add tty helpers

4 years agofix typos in doc comments.
Christian Ebner [Thu, 30 Jan 2020 11:08:02 +0000 (12:08 +0100)]
fix typos in doc comments.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
4 years agobump rust-proxmox version to 0.1.12-1
Dietmar Maurer [Fri, 31 Jan 2020 05:53:33 +0000 (06:53 +0100)]
bump rust-proxmox version to 0.1.12-1

4 years agosrc/api/cli/text_table.rs: only call TIOCGWINSZ on terminals
Dietmar Maurer [Thu, 30 Jan 2020 17:25:43 +0000 (18:25 +0100)]
src/api/cli/text_table.rs: only call TIOCGWINSZ on terminals

4 years agosrc/api/cli/text_table.rs - TableFormatOptions: allow to add single column configs
Dietmar Maurer [Thu, 30 Jan 2020 17:18:26 +0000 (18:18 +0100)]
src/api/cli/text_table.rs - TableFormatOptions: allow to add single column configs

4 years agobump version to 0.1.11
Wolfgang Bumiller [Thu, 30 Jan 2020 11:46:28 +0000 (12:46 +0100)]
bump version to 0.1.11

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoproxmox: bump api-macro version dependency
Wolfgang Bumiller [Thu, 30 Jan 2020 11:45:51 +0000 (12:45 +0100)]
proxmox: bump api-macro version dependency

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoformatting fixup
Wolfgang Bumiller [Thu, 30 Jan 2020 11:37:26 +0000 (12:37 +0100)]
formatting fixup

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agobump api-macro to 0.1.3
Wolfgang Bumiller [Thu, 30 Jan 2020 11:35:28 +0000 (12:35 +0100)]
bump api-macro to 0.1.3

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoexpose parameter schema as API_PARAMETER_SCHEMA_<methodname>
Wolfgang Bumiller [Thu, 30 Jan 2020 11:32:22 +0000 (12:32 +0100)]
expose parameter schema as API_PARAMETER_SCHEMA_<methodname>

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoexpose return schema as API_RETURN_SCHEMA_<methodname>
Wolfgang Bumiller [Thu, 30 Jan 2020 11:28:12 +0000 (12:28 +0100)]
expose return schema as API_RETURN_SCHEMA_<methodname>

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agobump rust-proxmox version to 0.1.10-1
Dietmar Maurer [Thu, 30 Jan 2020 10:47:06 +0000 (11:47 +0100)]
bump rust-proxmox version to 0.1.10-1

4 years agoproxmox/src/api/cli/text_table.rs: new table formatter
Dietmar Maurer [Thu, 30 Jan 2020 10:43:33 +0000 (11:43 +0100)]
proxmox/src/api/cli/text_table.rs: new table formatter

4 years agorust-proxmox: bump version to 0.1.9-1
Dietmar Maurer [Mon, 27 Jan 2020 17:04:26 +0000 (18:04 +0100)]
rust-proxmox: bump version to 0.1.9-1

4 years agoapi/cli/command.rs: implement both sync and async versions.
Dietmar Maurer [Mon, 27 Jan 2020 17:01:16 +0000 (18:01 +0100)]
api/cli/command.rs: implement both sync and async versions.

4 years agosrc/api/cli/command.rs - handle_nested_command: fix help output
Dietmar Maurer [Mon, 27 Jan 2020 10:09:14 +0000 (11:09 +0100)]
src/api/cli/command.rs - handle_nested_command: fix help output

4 years agofix denglisch: s/rest/remaining/
Thomas Lamprecht [Thu, 23 Jan 2020 12:56:32 +0000 (13:56 +0100)]
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>
4 years agobump proxmox to 0.1.8 to depend on api macro 0.1.2
Wolfgang Bumiller [Thu, 23 Jan 2020 12:17:56 +0000 (13:17 +0100)]
bump proxmox to 0.1.8 to depend on api macro 0.1.2

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agobump api-macro
Wolfgang Bumiller [Thu, 23 Jan 2020 12:16:50 +0000 (13:16 +0100)]
bump api-macro

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agofix property sorting
Wolfgang Bumiller [Thu, 23 Jan 2020 12:15:59 +0000 (13:15 +0100)]
fix property sorting

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agosys: doc update
Wolfgang Bumiller [Wed, 22 Jan 2020 07:56:51 +0000 (08:56 +0100)]
sys: doc update

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agosys: hide io_assert macro for now
Wolfgang Bumiller [Wed, 22 Jan 2020 07:54:53 +0000 (08:54 +0100)]
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>
4 years agobuild fixups
Wolfgang Bumiller [Tue, 21 Jan 2020 11:30:13 +0000 (12:30 +0100)]
build fixups

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoremove valgrind feature for now and bump to 0.1.7
Wolfgang Bumiller [Tue, 21 Jan 2020 11:23:50 +0000 (12:23 +0100)]
remove valgrind feature for now and bump to 0.1.7

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoMerge remote-tracking branch 'proxdev/master'
Wolfgang Bumiller [Tue, 21 Jan 2020 11:20:05 +0000 (12:20 +0100)]
Merge remote-tracking branch 'proxdev/master'

4 years agomerge api, sys and tools into proxmox directly
Wolfgang Bumiller [Tue, 21 Jan 2020 10:56:56 +0000 (11:56 +0100)]
merge api, sys and tools into proxmox directly

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoAdd make dinstall target
Wolfgang Bumiller [Tue, 21 Jan 2020 10:28:15 +0000 (11:28 +0100)]
Add make dinstall target

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoformatting fixup
Wolfgang Bumiller [Tue, 21 Jan 2020 10:28:12 +0000 (11:28 +0100)]
formatting fixup

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agobump proxmox-api version
Dietmar Maurer [Tue, 21 Jan 2020 10:18:58 +0000 (11:18 +0100)]
bump proxmox-api version