Commit 11ea692
authored
feat!: allow setting default environment variable values (#185)
* chore: update dependencies
`time` has restricted the version of `serde` due to the addition of
precompiled blobs in the crate uploaded to crates.io.
See also serde-rs/serde#2538
* feat: add StringWithEnv type that expands variable values but stays a String
* feat: set default environment variable values if variable is unset
* fix: fix tests, add api docs
* fix: replace unmaintained atty with standard library
* chore: add deny, msrv to Makefile.toml
* chore: allow clippy lint
* style: run cargo fmt
* chore: disable lint that is no longer stable
* refactor: make EnvVarDefaults public
* refactor!: remove Deref impl for PileName
* chore: change checks used in check-all
* ci: add msrv and deny checks to CI
* chore: change TOML name from var_defaults to defaults
* doc: update book with environment variable defaults support
* chore: update sample config
* ci: delete problematic lines
* ci: fix job name
* style: fix clippy warnings/suggestions
* style: run cargo fmt
* chore: update dependencies1 parent b2c0cf7 commit 11ea692
23 files changed
Lines changed: 1055 additions & 421 deletions
File tree
- .github/workflows
- book/src
- config
- getting-started/create-config
- src
- checkers/history
- operation
- command
- config/builder
- environment
- newtypes
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
39 | 38 | | |
40 | 39 | | |
41 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
42 | 109 | | |
43 | 110 | | |
44 | 111 | | |
| |||
0 commit comments