Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog/+schema-cli-short-help.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed the `load` and `check` command descriptions in the `infrahubctl schema` help output and generated docs, which were cut off mid-sentence.
4 changes: 2 additions & 2 deletions docs/docs/infrahubctl/infrahubctl-schema.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ $ infrahubctl schema [OPTIONS] COMMAND [ARGS]...

**Commands**:

* `load`: Load one or multiple schema files into...
* `check`: Check if schema files are valid and what...
* `load`: Load one or multiple schema files into Infrahub.
* `check`: Check if schema files are valid and their impact on Infrahub.
* `export`: Export the schema from Infrahub as YAML...
* `list`: List all available schema kinds.
* `show`: Show details for a specific schema kind.
Expand Down
4 changes: 2 additions & 2 deletions infrahub_sdk/ctl/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def get_node(
return None


@app.command()
@app.command(short_help="Load one or multiple schema files into Infrahub.")
@catch_exception(console=console)
async def load(
schemas: list[Path],
Expand Down Expand Up @@ -227,7 +227,7 @@ async def load(
await asyncio.sleep(delay=1)


@app.command()
@app.command(short_help="Check if schema files are valid and their impact on Infrahub.")
@catch_exception(console=console)
async def check(
schemas: list[Path],
Expand Down