fix: move default.toml inside crate that uses it

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
```
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.

View file

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

View file

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