Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
ebulk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
ebulk
Commits
db891b8b
Commit
db891b8b
authored
Feb 10, 2021
by
Roque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new ebulk command to get ebulk configuration info
parent
34ccf56f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
ebulk
ebulk
+18
-0
ebulk-data/help.md
ebulk-data/help.md
+1
-0
No files found.
ebulk
View file @
db891b8b
...
...
@@ -265,6 +265,21 @@ function defaultDataLakeUrl {
echo
"[INFO] Data-lake url set to default '
$DEFAULT_DATA_LAKE_URL
'"
}
function
displayInfo
{
echo
"[INFO] Current ebulk data-lake url:
$DOWN_URL
"
if
[
-f
"
$CREDENTIALS_FILE
"
]
;
then
STORED_CRED
=
$(
cat
"
$CREDENTIALS_FILE
"
2>/dev/null
)
if
[[
"
$STORED_CRED
"
!=
""
]]
;
then
IFS
=
';'
read
-ra
CRED_ARRAY
<<<
"
$STORED_CRED
"
echo
"[INFO] Credentials stored for user:
${
CRED_ARRAY
[0]
}
"
IFS
=
' '
exit
fi
fi
echo
"[INFO] No stored credentials."
}
function
updateConfigFile
{
if
[
"
$STORAGE
"
!=
""
]
;
then
echo
...
...
@@ -664,6 +679,9 @@ while [ "$1" != "" ]; do
-v
|
--version
)
echo
"ebulk
$EBULK_VERSION
"
exit
;;
-i
|
--info
)
displayInfo
exit
;;
-e
|
--examples
)
cat
$TOOL_PATH
/example.md
exit
;;
...
...
ebulk-data/help.md
View file @
db891b8b
...
...
@@ -17,6 +17,7 @@ commands:
-r, --readme Opens README file
-e, --examples Shows some tool usage examples
-v, --version Ebulk tool version
-i, --info Displays information about datalake url, credentials, etc.
store-credentials Stores user and password for automatic authentication
set-data-lake-url Sets the data lake url where to ingest/download
default-data-lake-url Sets the data lake url to default
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment