Describe the bug
Lines 181 through 193 of jekyll-init that handle the following options...
--title
--email
--twitter-username
--github-username
... do not seem to edit the _config.yml file as intended.
Furthermore, when --title parameter is used the repository name is overwritten, and the --title parameter is not parsed correctly when spaces are present.
To Reproduce
ssh HOST jekyll-init\
--title 'test title'\
--email 'test@example.tld'\
--twitter-username 'S0_And_S0'\
--github-username 'S0AndS0'\
test-repo\
--help
# ...
# title
# Name of repository to internalize or add Jekyll gh-pages branch to
# ...
# --title test
# --email
# --twitter-username
# --github-username USER
- Example one
_config.yml (snip)
title: test
email: your-email@example.com
twitter_username: jekyllrb
github_username: USER
ssh HOST jekyll-init\
--title='test title'\
--email='test@example.tld'\
--twitter-username='S0_And_S0'\
--github-username='S0AndS0'\
test-repo\
--help
# ...
# title
# Name of repository to internalize or add Jekyll gh-pages branch to
# ...
# --title test
# --email test@example.tld
# --twitter-username S0_And_S0
# --github-username S0AndS0
- Example two
_config.yml (snip)
title: test
email: test@example.tld-email@example.com
twitter_username: jekyllrb
github_username: S0AndS0
In both of the above examples a repository is created under ~/git/title instead of ~/git/test-repo
Expected behavior
In either of the above cases the configuration file should be similar to...
title: test title
email: test@example.tld
twitter_username: S0_And_S0
github_username: S0AndS0
... and the repository should be created under ~/git/test-repo
Describe the bug
Lines
181through193ofjekyll-initthat handle the following options...... do not seem to edit the
_config.ymlfile as intended.Furthermore, when
--titleparameter is used the repository name is overwritten, and the--titleparameter is not parsed correctly when spaces are present.To Reproduce
_config.yml(snip)_config.yml(snip)In both of the above examples a repository is created under
~/git/titleinstead of~/git/test-repoExpected behavior
In either of the above cases the configuration file should be similar to...
... and the repository should be created under
~/git/test-repo