Skip to content

Commit

Permalink
Add -with-cloudcache instead of -cloudcache
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
  • Loading branch information
pditommaso committed Oct 13, 2023
1 parent 82a3f40 commit ef53026
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions docs/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -1134,9 +1134,6 @@ The `run` command is used to execute a local pipeline script or remote pipeline
`-cache`
: Enable/disable processes caching.

`-cloudcache`
: Enable the use of the Cloud cache plugin for storing cache metadata to an object storage bucket.

`-d, -deep`
: Create a shallow clone of the specified depth.

Expand Down Expand Up @@ -1230,6 +1227,9 @@ The `run` command is used to execute a local pipeline script or remote pipeline
`-with-charliecloud`
: Enable process execution in a Charliecloud container.

`-with-cloudcache`
: Enable the use of the Cloud cache plugin for storing cache metadata to an object storage bucket.

`-with-conda`
: Use the specified Conda environment package or file (must end with `.yml` or `.yaml`)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class CmdRun extends CmdBase implements HubOptions {
@Parameter(names=['-bucket-dir'], description = 'Remote bucket where intermediate result files are stored')
String bucketDir

@Parameter(names=['-cloudcache'], description = 'Enable the use of object storage bucket as storage for cache meta-data')
@Parameter(names=['-with-cloudcache'], description = 'Enable the use of object storage bucket as storage for cache meta-data')
String cloudCachePath

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ class Launcher {
normalized << '%all'
}

else if( current == '-cloudcache' && (i==args.size() || args[i].startsWith('-'))) {
else if( current == '-with-cloudcache' && (i==args.size() || args[i].startsWith('-'))) {
normalized << '-'
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,9 @@ class LauncherTest extends Specification {
launcher.normalizeArgs('run', '-', '-a', '-b') == ['run','-stdin', '-a', '-b']
launcher.normalizeArgs('run') == ['run']

launcher.normalizeArgs('run','-cloudcache') == ['run', '-cloudcache', '-']
launcher.normalizeArgs('run','-cloudcache', '-x') == ['run', '-cloudcache', '-', '-x']
launcher.normalizeArgs('run','-cloudcache', 's3://foo/bar') == ['run', '-cloudcache','s3://foo/bar']
launcher.normalizeArgs('run','-with-cloudcache') == ['run', '-with-cloudcache', '-']
launcher.normalizeArgs('run','-with-cloudcache', '-x') == ['run', '-with-cloudcache', '-', '-x']
launcher.normalizeArgs('run','-with-cloudcache', 's3://foo/bar') == ['run', '-with-cloudcache','s3://foo/bar']

launcher.normalizeArgs('run','-with-tower') == ['run', '-with-tower', '-']
launcher.normalizeArgs('run','-with-tower', '-x') == ['run', '-with-tower', '-', '-x']
Expand Down

0 comments on commit ef53026

Please sign in to comment.