fix: move default.toml inside crate that uses it
All checks were successful
Rust / build (push) Successful in 1m22s
ci/woodpecker/push/push-next Pipeline was successful
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/tag-created Pipeline was successful

This commit is contained in:
Paul Campbell 2024-07-14 20:14:00 +01:00
parent 639e561be6
commit e2b545ae39
4 changed files with 3 additions and 3 deletions

View file

@ -318,7 +318,7 @@ The create the default config file, run this command:
git next server init git next server init
``` ```
This will create a `git-next-server.toml` file. [Default](./server-default.toml) This will create a `git-next-server.toml` file. [Default](./crates/server/server-default.toml)
Edit this file to your needs. See the [Configuration](#configuration) section above. Edit this file to your needs. See the [Configuration](#configuration) section above.

View file

@ -11,7 +11,7 @@ pub fn run(fs: FileSystem) {
file_name file_name
); );
} else { } else {
match fs.file_write(&pathbuf, include_str!("../../../default.toml")) { match fs.file_write(&pathbuf, include_str!("../default.toml")) {
Ok(_) => { Ok(_) => {
println!("Created a default configuration file at {}", file_name); println!("Created a default configuration file at {}", file_name);
} }

View file

@ -31,7 +31,7 @@ mod init {
assert_eq!( assert_eq!(
fs.file_read_to_string(&file)?, fs.file_read_to_string(&file)?,
include_str!("../../../default.toml"), include_str!("../default.toml"),
"The file does not match the default template" "The file does not match the default template"
); );