From 748d57ee64036305a84301db7211b713c1995391 Mon Sep 17 00:00:00 2001 From: Gauvain Pocentek Date: Mon, 5 Mar 2018 17:35:41 +0100 Subject: [cli] Allow to read args from files With the @/file/path syntax (similar to curl) user can provide values from attributes in files. Fixes #448 --- tools/cli_test_v4.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/cli_test_v4.sh b/tools/cli_test_v4.sh index 01f84e8..b62e5cd 100644 --- a/tools/cli_test_v4.sh +++ b/tools/cli_test_v4.sh @@ -108,5 +108,16 @@ testcase "application settings get" ' ' testcase "application settings update" ' - GITLAB application-settings update --signup-enabled false + GITLAB application-settings update --signup-enabled false >/dev/null 2>&1 +' + +cat > /tmp/gitlab-project-description << EOF +Multi line + +Data +EOF +testcase "values from files" ' + OUTPUT=$(GITLAB -v project create --name fromfile \ + --description @/tmp/gitlab-project-description) + echo $OUTPUT | grep -q "Multi line" ' -- cgit v1.2.1