New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Content, layout config opt made available via command line #1698
Conversation
Is this okay or should I instead add an additional argument to |
Please don't add an additional argument. The current approach you are taking is sound. I would rename your function to something else. It's not simpler than AbsPathify as it takes an additional argument. |
when you have this ready, please rebase from master and force push. |
👍 ok |
431f075
to
2752d9f
Compare
Squashed and rebased, this should be good to go after code review. |
@kujohn could you rebase this against master ... again; sorry for that :-) |
2ced457
to
c5b51ab
Compare
Had some issue rebasing. Be back in an hour. 😭 |
9d4140e
to
f8f32a4
Compare
Rebased correctly I think. |
var layoutPath string | ||
|
||
if layoutDir != "" { | ||
layoutPath = helpers.AbsPathifySimple(viper.GetString("LayoutDir")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why AbsPathifySimple? These new dir flags should behave exactly as the others. If there is some issue with AbsPathify, then that should be addressed in a separate issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the working directory is set, this allows relative layout/content path to be set independently and working.
Perhaps this feature is not needed yet or that this func needs to be renamed?
This is another issue not relevant to this issue. Remove that function and use the existing. |
c54e34b
to
92a0314
Compare
ok squashed and cleaned up. |
lgtm |
Looks good to me, too, thanks. Merged in 0ab4162 |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I want to get some feedback before working further.
fixes #1598