Skip to content

Commit

Permalink
Fix examples in readme / cli
Browse files Browse the repository at this point in the history
  • Loading branch information
pappasam committed Aug 19, 2019
1 parent ea0d25e commit ec40833
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ This project can be used as either a command line utility or a Python library.

### Command line interface

Stdin -> Disk : cat input.toml | toml-sort
Stdin -> Stdout : cat input.toml | toml-sort

Disk -> Disk : toml-sort -o output.toml input.toml
Disk -> Disk : toml-sort -o output.toml input.toml

Linting : toml-sort --check input.toml
Linting : toml-sort --check input.toml

Inplace Disk : toml-sort --in-place input.toml
Inplace Disk : toml-sort --in-place input.toml

## Example

Expand Down
8 changes: 4 additions & 4 deletions toml_sort/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,13 @@ def cli(output, _all, in_place, no_header, check, filename) -> None:
Examples (non-exhaustive list):
Stdin -> Disk : cat input.toml | toml-sort
Stdin -> Stdout : cat input.toml | toml-sort
Disk -> Disk : toml-sort -o output.toml input.toml
Disk -> Disk : toml-sort -o output.toml input.toml
Linting : toml-sort --check input.toml
Linting : toml-sort --check input.toml
Inplace Disk : toml-sort --in-place input.toml
Inplace Disk : toml-sort --in-place input.toml
"""
if filename == "-" and sys.stdin.isatty():
error_message_if_terminal = """
Expand Down

0 comments on commit ec40833

Please sign in to comment.