Skip to content

Commit

Permalink
I believe I got the configuration / command line flag balance in orde…
Browse files Browse the repository at this point in the history
…r, more testing required
  • Loading branch information
jonasbn committed Mar 5, 2023
1 parent 720e206 commit 7710b63
Show file tree
Hide file tree
Showing 7 changed files with 243 additions and 85 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ stevedore.code-workspace
.in
cover.out
covarage.out
main
4 changes: 4 additions & 0 deletions .stevedore.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "stevedore-config.schema.json",
"debug": false
}
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,33 @@ Or you can pass it in via STDIN:

These will render the same result.

## Configuration

If you find yourself constantly writing out the same command line parameters, you can create a local configuration file: `.stevedore.json`

You can specify the setting for all command line arguments, but with a JSON key/value structure:

```json
{
"$schema": "stevedore-config.schema.json",
"color": true,
"debug": false,
"excluded": false,
"fullpath": true,
"ignorefile": ".stevedoreignore",
"included": false,
"invertcolor": false,
"verbose": false
}
```

Parameters not available for configuration:

- `--help`
- `--stdin`
- `--nocolor` set `color output` to `false`
- `--nofullpath` set `fullpath` to `false`

## Return Values

- `0` indicates a successful run
Expand Down
Loading

0 comments on commit 7710b63

Please sign in to comment.