diff options
| author | Fuwn <[email protected]> | 2021-06-21 00:14:40 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-06-21 00:14:40 +0000 |
| commit | 25a68af4063edd9398dc70b9e6ab682549636b7e (patch) | |
| tree | e815a34d2edddf68ebc5aea6b80c80a5c2cbd27a /crates/whirl_config/src/lib.rs | |
| parent | Merge pull request #48 from Whirlsplash/renovate/tokio-1.x (diff) | |
| download | whirl-25a68af4063edd9398dc70b9e6ab682549636b7e.tar.xz whirl-25a68af4063edd9398dc70b9e6ab682549636b7e.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/src/lib.rs')
| -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() |