Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove quiet argument to stac validate #471

Merged
merged 1 commit into from
Nov 21, 2023
Merged
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
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
Loading