diff options
| author | Fuwn <[email protected]> | 2021-06-21 00:14:40 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-06-21 00:14:40 -0700 |
| commit | 85ca99c5e11625582b91858f9fcdf9fe407cde9b (patch) | |
| tree | cf670426ff9385a0094f62245d7bbb2650836bfa /crates/whirl_config | |
| parent | Merge pull request #48 from Whirlsplash/renovate/tokio-1.x (diff) | |
| download | whirl-85ca99c5e11625582b91858f9fcdf9fe407cde9b.tar.xz whirl-85ca99c5e11625582b91858f9fcdf9fe407cde9b.zip | |
feat(cli): generate sub-command
The long awaited `generate` sub-command is finally here. You may now generate yourself a default
configuration file by running `whirl config generate`!
Diffstat (limited to 'crates/whirl_config')
| -rw-r--r-- | crates/whirl_config/src/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/whirl_config/src/lib.rs b/crates/whirl_config/src/lib.rs index 81b71d7..218a249 100644 --- a/crates/whirl_config/src/lib.rs +++ b/crates/whirl_config/src/lib.rs @@ -79,6 +79,10 @@ impl Config { "unable to load configuration file, reverting to default value: {}", why ); + warn!( + "you should probably generate yourself a configuration file with `whirl config generate`!" + ); + Self::default() } else { Self::load().unwrap() |