Skip to content

Commit

Permalink
Add publish command to README
Browse files Browse the repository at this point in the history
  • Loading branch information
simonharrer committed May 14, 2024
1 parent fb343fe commit caed695
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ Commands
- [changelog](#changelog)
- [diff](#diff)
- [catalog](#catalog)
- [publish](#publish)

### init

Expand Down Expand Up @@ -767,6 +768,21 @@ Available import options:
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
```

### Publish

```
Usage: datacontract publish [OPTIONS] [LOCATION]
Publish the data contract to the Data Mesh Manager.
╭─ Arguments ────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ location [LOCATION] The location (url or path) of the data contract yaml. [default: datacontract.yaml] │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --help Show this message and exit. │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
```

## Integrations

Expand Down
2 changes: 1 addition & 1 deletion datacontract/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def publish(
] = "datacontract.yaml",
):
"""
Publish the data contract to the Data Mesh Manager
Publish the data contract to the Data Mesh Manager.
"""
publish_to_datamesh_manager(
data_contract=DataContract(data_contract_file=location),
Expand Down

0 comments on commit caed695

Please sign in to comment.