Skip to content

Commit

Permalink
removed: quiet argument to stac validate (#471)
Browse files Browse the repository at this point in the history
`no_output` was removed in
stac-utils/stac-validator@296b3ae
  • Loading branch information
gadomski authored Nov 21, 2023
1 parent e985fb6 commit e6ccf38
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- Make computation of statistics and histogram optional for `core.add_raster.add_raster_to_item` ([#467](https://github.com/stac-utils/stactools/pull/467))
- Make **stac-validator** and **stac-check** optional dependencies ([#468](https://github.com/stac-utils/stactools/pull/468))

### Removed

- `--quiet` argument to `stac validate` ([#471](https://github.com/stac-utils/stactools/pull/471))

## [0.5.2] - 2023-09-20

### Fixed
Expand Down
8 changes: 1 addition & 7 deletions src/stactools/cli/commands/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ def create_validate_command(cli: click.Group) -> click.Command:
"--validate-assets/--no-validate-assets", help="Validate assets.", default=True
)
@click.option("-v", "--verbose", is_flag=True, help="Enables verbose output.")
@click.option(
"--quiet/--no-quiet", help="Do not print output to console.", default=False
)
@click.option(
"--log-file",
help="Save output to file (local filepath).",
Expand All @@ -34,7 +31,6 @@ def validate_command(
validate_links: bool,
validate_assets: bool,
verbose: bool,
quiet: bool,
log_file: Optional[str],
) -> None:
"""Validates a STAC object.
Expand All @@ -52,12 +48,10 @@ def validate_command(
links=validate_links,
assets=validate_assets,
verbose=verbose,
no_output=quiet,
log=log_file or "",
)
is_valid = validate.run()
if not quiet:
click.echo(json.dumps(validate.message, indent=4))
click.echo(json.dumps(validate.message, indent=4))
if is_valid:
sys.exit(0)
else:
Expand Down

0 comments on commit e6ccf38

Please sign in to comment.