testscripts/commands/config__cachedir.txt
raw| 1 | |
| 2 | [windows] skip |
| 3 | |
| 4 | env HUGO_CACHEDIR= |
| 5 | hugo config |
| 6 | |
| 7 | [darwin] stdout 'home/Library/Caches/hugo_cache' |
| 8 | [linux] stdout 'xdgcachehome/hugo_cache' |
| 9 | |
| 10 | # Repeat it to make sure it handles an existing hugo_cache dir. |
| 11 | hugo config |
| 12 | |
| 13 | [darwin] stdout 'home/Library/Caches/hugo_cache' |
| 14 | [linux] stdout 'xdgcachehome/hugo_cache' |
| 15 | |
| 16 | -- hugo.toml -- |
| 17 | baseURL="https://example.com/" |
| 18 | title="My New Hugo Project" |