Skip to content

Commit

Permalink
docs: add desc field
Browse files Browse the repository at this point in the history
  • Loading branch information
efiop committed Nov 17, 2020
1 parent 8d4fe32 commit c45eabf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 3 additions & 1 deletion content/docs/command-reference/add.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ file.

```usage
usage: dvc add [-h] [-q | -v] [-R] [--no-commit] [--external]
[--file <filename>] [--glob]
[--file <filename>] [--glob] [--desc <description>]
targets [targets ...]
positional arguments:
Expand Down Expand Up @@ -148,6 +148,8 @@ directory symlinks.
pattern as specified by `target`. Shell-style wildcards are supported: `*`,
`?`, `[seq]`, `[!seq]`, and `**`.

- `--desc` - arbitrary string description for generated `.dvc` file.

- `-h`, `--help` - prints the usage/help message, and exit.

- `-q`, `--quiet` - do not write anything to standard output. Exit with 0 if no
Expand Down
4 changes: 3 additions & 1 deletion content/docs/command-reference/run.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ usage: dvc run [-h] [-q | -v] -n <name> [-d <path>] [-o <path>]
[-w <path>] [--no-exec] [-f]
[--no-run-cache] [--no-commit]
[--outs-persist <path>] [--outs-persist-no-cache <path>]
[--always-changed] [--external]
[--always-changed] [--external] [--desc <description>]
command
positional arguments:
Expand Down Expand Up @@ -263,6 +263,8 @@ $ dvc run -n my_stage './my_script.sh $MYENVVAR'
- `--external` - allow outputs that are outside of the DVC repository. See
[Managing External Data](/doc/user-guide/managing-external-data).

- `--desc` - arbitrary string description for this stage.

- `-h`, `--help` - prints the usage/help message, and exit.

- `-q`, `--quiet` - do not write anything to standard output. Exit with 0 if no
Expand Down
4 changes: 4 additions & 0 deletions content/docs/user-guide/dvc-files-and-directories.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ They use a simple [YAML](https://yaml.org/) format, meant to be easy to read,
edit, or even created manually. Here is a sample:

```yaml
desc: cats and dogs dataset
outs:
- md5: a304afb96060aad90176268345e10355
path: data.xml
Expand All @@ -60,6 +61,7 @@ meta:
- `meta` (optional): Arbitrary metadata can be added manually with this field.
Any YAML contents is supported. `meta` contents are ignored by DVC, but they
can be meaningful for user processes that read `.dvc` files.
- `desc` (optional): Arbitrary string description for this `.dvc` file.

An _output entry_ (`outs`) consists of these fields:

Expand Down Expand Up @@ -128,6 +130,7 @@ stages:
metrics:
- performance.json
training:
desc: train your model
cmd: python train.py
deps:
- train.py
Expand Down Expand Up @@ -173,6 +176,7 @@ the possible following fields:
- `meta` (optional): Arbitrary metadata can be added manually with this field.
Any YAML contents is supported. `meta` contents are ignored by DVC, but they
can be meaningful for user processes that read or write `.dvc` files directly.
- `desc` (optional): Arbitrary string description for this stage.

`dvc.yaml` files also support `# comments`.

Expand Down

0 comments on commit c45eabf

Please sign in to comment.