Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-advanced-user-tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-advanced-user-tools
Commits
b93eabf7
Verified
Commit
b93eabf7
authored
11 months ago
by
Daniel Hornung
Browse files
Options
Downloads
Patches
Plain Diff
DOC: Better help text for loadFiles
parent
84ecad43
No related branches found
No related tags found
2 merge requests
!107
Release v0.11.0
,
!105
Fix linting
Pipeline
#52031
passed
11 months ago
Stage: setup
Stage: cert
Stage: style
Stage: unittest
Stage: integrationtest
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/caosadvancedtools/loadFiles.py
+20
-1
20 additions, 1 deletion
src/caosadvancedtools/loadFiles.py
with
20 additions
and
1 deletion
src/caosadvancedtools/loadFiles.py
+
20
−
1
View file @
b93eabf7
...
...
@@ -190,7 +190,26 @@ def main(argv=None):
sys
.
argv
.
extend
(
argv
)
# Setup argument parser
parser
=
ArgumentParser
()
parser
=
ArgumentParser
(
description
=
"""
Make files that the LinkAhead server can see available als FILE entities.
In a typical scenario where LinkAhead runs in a Docker container and a host directory `mydir` is
mounted as an extroot with name `myext`, loadfiles could be called like this:
> loadFiles -p foo /opt/caosdb/mnt/extroot/myext/
This call would result in
1. On the LinkAhead server: There are FILE entities for all files in `mydir`.
2. In the `caosroot` directory inside the Docker image, there are symlinks like this:
foo/myext/somefile.txt -> /opt/caosdb/mnt/extroot/myext/somefile.txt
foo/myext/dir/other.bin -> /opt/caosdb/mnt/extroot/myext/dir/other.bin
The FILE entity for `somefile.txt` for example now has the path
"
foo/myext/somefile.txt
"
and its
content can be retrieved via LinkAhead
'
s API.
"""
,
formatter_class
=
argparse
.
RawDescriptionHelpFormatter
)
parser
.
add_argument
(
"
-p
"
,
"
--prefix
"
,
dest
=
"
prefix
"
,
help
=
"
store files with this prefix into the server
'
s
"
"
file system.
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment