adamwill / rpms / openscap

Forked from rpms/openscap 3 years ago
Clone
Blob Blame History Raw
From c3d14137500991e6eae629110cb9c71b1fadc5de Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Mat=C4=9Bj=20T=C3=BD=C4=8D?= <matyc@redhat.com>
Date: Fri, 1 Dec 2017 15:35:44 +0100
Subject: [PATCH] Updated bash completion.

Just included updated 'info' and 'xccdf eval'.
---
 dist/bash_completion.d/oscap | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dist/bash_completion.d/oscap b/dist/bash_completion.d/oscap
index 640eb26bb..ff6677327 100644
--- a/dist/bash_completion.d/oscap
+++ b/dist/bash_completion.d/oscap
@@ -31,7 +31,7 @@ function _oscap {
     opts[oscap:oval:analyse]="--variables --directives --verbose --verbose-log-file"
     opts[oscap:oval:collect]="--variables --verbose --verbose-log-file"
     opts[oscap:oval:generate:report]="-o --output"
-    opts[oscap:xccdf:eval]="--skip-valid --datastream-id --xccdf-id --profile --results --results-arf --report --oval-results --export-variables --fetch-remote-resources --remediate --cpe  --verbose --verbose-log-file"
+    opts[oscap:xccdf:eval]="--benchmark-id --check-engine-results --cpe --datastream-id --export-variables --fetch-remote-resources --oval-results --profile --progress --remediate --report --results --results-arf --rule --sce-results --skip-valid --stig-viewer --tailoring-file --tailoring-id --thin-results --verbose --verbose-log-file --without-syschar --xccdf-id"
     opts[oscap:xccdf:validate]="--schematron"
     opts[oscap:xccdf:export-oval-variables]="--datastream-id --xccdf-id --profile --skip-valid --fetch-remote-resources --cpe"
     opts[oscap:xccdf:remediate]="--result-id --skip-valid --fetch-remote-resources --results --results-arf --report --oval-results --export-variables --cpe"
@@ -48,7 +48,7 @@ function _oscap {
     opts[oscap:ds:rds-split]="--report-id --skip-valid"
     opts[oscap:cvss:score]=""
     opts[oscap:cvss:describe]=""
-    opts[oscap:info]="--fetch-remote-resources"
+    opts[oscap:info]="--fetch-remote-resources --profile --profiles"
 
     # local variables
 	local std cmd i prev