Commit 5775db93 authored by Roque's avatar Roque

Always yes mode argument

parent 452e2f8d
...@@ -44,6 +44,7 @@ UPDATE="U" ...@@ -44,6 +44,7 @@ UPDATE="U"
RESUME="R" RESUME="R"
DOWNLOAD="D" DOWNLOAD="D"
ASK="A" ASK="A"
ALWAYS_YES="false"
# load data lake url from file if exists # load data lake url from file if exists
if [ -f "$DATA_LAKE_URL_FILE" ]; then if [ -f "$DATA_LAKE_URL_FILE" ]; then
...@@ -280,6 +281,7 @@ function updateConfigFile { ...@@ -280,6 +281,7 @@ function updateConfigFile {
ING_URL=\"$ING_URL\" ING_URL=\"$ING_URL\"
STORAGE=\"$STORAGE\" STORAGE=\"$STORAGE\"
STATUS=\"$STATUS\" STATUS=\"$STATUS\"
ALWAYS_YES=\"$ALWAYS_YES\"
S3_BUCKET=\"$S3_BUCKET\" S3_BUCKET=\"$S3_BUCKET\"
S3_PREFIX=\"$S3_PREFIX\" S3_PREFIX=\"$S3_PREFIX\"
...@@ -603,6 +605,8 @@ while [ "$1" != "" ]; do ...@@ -603,6 +605,8 @@ while [ "$1" != "" ]; do
-d | --directory ) shift -d | --directory ) shift
DATASET_DIR=$1 DATASET_DIR=$1
;; ;;
-y | --yes ) ALWAYS_YES="true"
;;
-s | --storage ) shift -s | --storage ) shift
STORAGE=$1 STORAGE=$1
;; ;;
......
...@@ -8,6 +8,7 @@ in: ...@@ -8,6 +8,7 @@ in:
chunk_size: $CHUNK chunk_size: $CHUNK
output_path: $DATASET_DIR output_path: $DATASET_DIR
tool_dir: $TOOL_DIR tool_dir: $TOOL_DIR
always_yes: $ALWAYS_YES
out: out:
type: fif type: fif
......
...@@ -10,6 +10,7 @@ in: ...@@ -10,6 +10,7 @@ in:
erp5_url: $DOWN_URL erp5_url: $DOWN_URL
tool_dir: $TOOL_DIR tool_dir: $TOOL_DIR
status: $STATUS status: $STATUS
always_yes: $ALWAYS_YES
out: out:
type: wendelin type: wendelin
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
# PLEASE FILL THE 'IN' SECTION ACCORDING TO YOUR PLUGIN # PLEASE FILL THE 'IN' SECTION ACCORDING TO YOUR PLUGIN
in: in:
always_yes: $ALWAYS_YES
# FOR EXAMPLE CSV FILES # FOR EXAMPLE CSV FILES
# type: file # type: file
......
...@@ -8,6 +8,7 @@ in: ...@@ -8,6 +8,7 @@ in:
user: $FTP_USER user: $FTP_USER
password: $FTP_PASSWORD password: $FTP_PASSWORD
path_prefix: $FTP_PATH path_prefix: $FTP_PATH
always_yes: $ALWAYS_YES
#ssl_verify: false #ssl_verify: false
#port: 21 #port: 21
......
...@@ -6,6 +6,7 @@ in: ...@@ -6,6 +6,7 @@ in:
type: http type: http
url: $HTTP_URL url: $HTTP_URL
method: $HTTP_METHOD method: $HTTP_METHOD
always_yes: $ALWAYS_YES
# basic_auth: # basic_auth:
# user: MyUser # user: MyUser
# password: MyPassword # password: MyPassword
......
...@@ -9,6 +9,7 @@ in: ...@@ -9,6 +9,7 @@ in:
access_key_id: $S3_ACCESS_KEY access_key_id: $S3_ACCESS_KEY
secret_access_key: $S3_SECRET_KEY secret_access_key: $S3_SECRET_KEY
auth_method: $S3_AUTH_METHOD auth_method: $S3_AUTH_METHOD
always_yes: $ALWAYS_YES
# endpoint: # endpoint:
# region: # region:
# path_match_pattern: # path_match_pattern:
......
...@@ -39,5 +39,6 @@ options: ...@@ -39,5 +39,6 @@ options:
-s, --storage <storage> Uses the selected input storage from this set: [http, ftp, s3] -s, --storage <storage> Uses the selected input storage from this set: [http, ftp, s3]
-cs, --custom-storage Allows user to set a new input storage -cs, --custom-storage Allows user to set a new input storage
-a, --advanced Allows to edit the Embulk cofiguration file of the input storage -a, --advanced Allows to edit the Embulk cofiguration file of the input storage
-y, --yes Enables "always yes" mode and ebulk is run assuming yes to all user inputs required
-dc, --discard-changes Discards local changes by checking the remote dataset -dc, --discard-changes Discards local changes by checking the remote dataset
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment