testscripts/commands/config.txt
raw| 1 | # Test the config command. |
| 2 | |
| 3 | hugo config -h |
| 4 | stdout 'Display project configuration' |
| 5 | |
| 6 | |
| 7 | hugo config |
| 8 | stdout 'baseurl = .https://example.com/' |
| 9 | stdout '\[contenttypes\.' |
| 10 | hugo config --format json |
| 11 | stdout '\"baseurl\": \"https://example.com/\",' |
| 12 | |
| 13 | hugo config mounts -h |
| 14 | stdout 'Print the configured file mounts' |
| 15 | |
| 16 | hugo config mounts |
| 17 | stdout '\"source\": \"content\",' |
| 18 | |
| 19 | # Test files |
| 20 | -- hugo.toml -- |
| 21 | baseURL="https://example.com/" |
| 22 | title="My New Hugo Project" |