Skip to content

Commit

Permalink
Merge pull request #159 from seqeralabs/update-docs
Browse files Browse the repository at this point in the history
docs: add docs for targets flag
  • Loading branch information
ejseqera authored Aug 2, 2024
2 parents 2b95ab6 + 2e2cc69 commit 130cf97
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,43 @@ seqerakit hello-world-config.yml --cli="-Djavax.net.ssl.trustStore=/absolute/pat

<b>Note</b>: Use of `--verbose` option for the `tw` CLI is currently not supported by `seqerakit`. Supplying `--cli="--verbose"` will raise an error.

## Specify targets
When using a YAML file as input that defines multiple resources, you can use the `--targets` flag to specify which resources to create. This flag takes a comma-separated list of resource names.

For example, given a YAML file that defines the following resources:

```yaml
workspaces:
- name: 'showcase'
organization: 'seqerakit_automation'
...
compute-envs:
- name: 'compute-env'
type: 'aws-batch forge'
workspace: 'seqerakit/test'
...
pipelines:
- name: "hello-world-test-seqerakit"
url: "https://github.com/nextflow-io/hello"
workspace: 'seqerakit/test'
compute-env: "compute-env"
...
```

You can target the creation of `pipelines` only by running:

```bash
seqerakit test.yml --targets pipelines
```
This will process only the pipelines block from the YAML file and ignore other blocks such as `workspaces` and `compute-envs`.

### Multiple Targets
You can also specify multiple resources to create by separating them with commas. For example, to create both workspaces and pipelines, run:

```bash
seqerakit test.yml --targets workspaces,pipelines
```

## YAML Configuration Options

There are several options that can be provided in your YAML configuration file, that are handled specially by seqerakit and/or are not exposed as `tw` CLI options.
Expand Down

0 comments on commit 130cf97

Please sign in to comment.