]> git.proxmox.com Git - pve-common.git/commitdiff
cli handler/formatter: small indendation clean-up
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 17 May 2023 07:15:16 +0000 (09:15 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 17 May 2023 07:15:16 +0000 (09:15 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/CLIFormatter.pm
src/PVE/CLIHandler.pm

index 199bee764f352836a37e9374ba847ceefb64590b..6977fd9978dcace2f4440ed3a900c40770782c1c 100644 (file)
@@ -15,16 +15,11 @@ use JSON;
 use utf8;
 use Encode;
 
-PVE::JSONSchema::register_renderer('timestamp',
-    \&PVE::Format::render_timestamp);
-PVE::JSONSchema::register_renderer('timestamp_gmt',
-    \&PVE::Format::render_timestamp_gmt);
-PVE::JSONSchema::register_renderer('duration',
-    \&PVE::Format::render_duration);
-PVE::JSONSchema::register_renderer('fraction_as_percentage',
-    \&PVE::Format::render_fraction_as_percentage);
-PVE::JSONSchema::register_renderer('bytes',
-    \&PVE::Format::render_bytes);
+PVE::JSONSchema::register_renderer('timestamp', \&PVE::Format::render_timestamp);
+PVE::JSONSchema::register_renderer('timestamp_gmt', \&PVE::Format::render_timestamp_gmt);
+PVE::JSONSchema::register_renderer('duration', \&PVE::Format::render_duration);
+PVE::JSONSchema::register_renderer('fraction_as_percentage', \&PVE::Format::render_fraction_as_percentage);
+PVE::JSONSchema::register_renderer('bytes', \&PVE::Format::render_bytes);
 
 sub render_yaml {
     my ($value) = @_;
index f96bcf615f0dc574fc06222af5ebade07fadfc4e..5c7863a886abb4eb406e4780b926900f6302151c 100644 (file)
@@ -215,8 +215,9 @@ sub generate_usage_str {
 
                    $str .= $separator if $oldclass && $oldclass ne $class;
                    $str .= $indent;
-                   $str .= $class->usage_str($name, "$prefix $cmd", $arg_param,
-                                             $fixed_param, $format, $param_cb, $formatter_properties);
+                   $str .= $class->usage_str(
+                       $name, "$prefix $cmd", $arg_param, $fixed_param, $format, $param_cb, $formatter_properties);
+
                    $oldclass = $class;
 
                } elsif (defined($def->{$cmd}->{alias}) && ($format eq 'asciidoc')) {